diff --git a/Cargo.lock b/Cargo.lock index 0e7dc6e..fc7c309 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3981,10 +3981,11 @@ dependencies = [ [[package]] name = "openrage-app" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "dirs", + "flate2", "memchr", "openrage-plugins", "png", @@ -4003,7 +4004,7 @@ dependencies = [ [[package]] name = "openrage-cli" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "clap", @@ -4022,7 +4023,7 @@ dependencies = [ [[package]] name = "openrage-gui" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "arboard", @@ -4049,7 +4050,7 @@ dependencies = [ [[package]] name = "openrage-plugins" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "dirs", @@ -4068,6 +4069,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "opus-rs" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bafbcaf2ed381cdf68ced4ed8d16517de90ffd7424e36f0b9e45d67fbe30b1f9" + [[package]] name = "orbclient" version = "0.3.55" @@ -4528,11 +4535,11 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "rage-core" -version = "0.5.0" +version = "0.6.0" [[package]] name = "rage-crypto" -version = "0.5.0" +version = "0.6.0" dependencies = [ "aes", "flate2", @@ -4543,10 +4550,11 @@ dependencies = [ [[package]] name = "rage-formats" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "lewton", + "opus-rs", "png", "rage-core", "rage-resource", @@ -4559,11 +4567,13 @@ dependencies = [ [[package]] name = "rage-index" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "rage-core", "rage-crypto", + "rage-formats", + "rage-resource", "rage-rpf", "rayon", "rusqlite", @@ -4572,7 +4582,7 @@ dependencies = [ [[package]] name = "rage-mods" -version = "0.5.0" +version = "0.6.0" dependencies = [ "rage-crypto", "rage-rpf", @@ -4580,7 +4590,7 @@ dependencies = [ [[package]] name = "rage-resource" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4588,7 +4598,7 @@ dependencies = [ [[package]] name = "rage-rpf" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "memchr", @@ -4604,7 +4614,7 @@ dependencies = [ [[package]] name = "rage-tfit2" -version = "0.5.0" +version = "0.6.0" [[package]] name = "rand" diff --git a/Cargo.toml b/Cargo.toml index 9bc00e7..de977b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["crates/*"] [workspace.package] -version = "0.5.0" +version = "0.6.0" edition = "2024" license = "GPL-3.0-only" repository = "https://github.com/Two-Play/openrage" @@ -13,14 +13,14 @@ authors = ["OpenRAGE contributors"] rust-version = "1.99" [workspace.dependencies] -rage-core = { path = "crates/rage-core", version = "0.5.0" } -rage-crypto = { path = "crates/rage-crypto", version = "0.5.0" } -rage-tfit2 = { path = "crates/rage-tfit2", version = "0.5.0" } -rage-rpf = { path = "crates/rage-rpf", version = "0.5.0", features = ["rdr2"] } -rage-index = { path = "crates/rage-index", version = "0.5.0" } -rage-mods = { path = "crates/rage-mods", version = "0.5.0" } -rage-resource = { path = "crates/rage-resource", version = "0.5.0" } -rage-formats = { path = "crates/rage-formats", version = "0.5.0" } +rage-core = { path = "crates/rage-core", version = "0.6.0" } +rage-crypto = { path = "crates/rage-crypto", version = "0.6.0" } +rage-tfit2 = { path = "crates/rage-tfit2", version = "0.6.0" } +rage-rpf = { path = "crates/rage-rpf", version = "0.6.0", features = ["rdr2"] } +rage-index = { path = "crates/rage-index", version = "0.6.0" } +rage-mods = { path = "crates/rage-mods", version = "0.6.0" } +rage-resource = { path = "crates/rage-resource", version = "0.6.0" } +rage-formats = { path = "crates/rage-formats", version = "0.6.0" } aes = "0.8" anyhow = "1" diff --git a/NOTICE.md b/NOTICE.md index 5a60ca7..ed9b825 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -51,6 +51,58 @@ Vorbis audio (Red Dead Redemption 2) is decoded with lewton (https://github.com/RustAudio/lewton), licensed under the MIT or Apache-2.0 license. +## opus-rs + +Opus audio (GTA VI) is decoded with opus-rs +(https://github.com/restsend/opus-rs), a port of libopus, licensed under the +BSD 3-Clause licence. + +## Librempeg + +The Bink 2 video and audio decoder in `crates/rage-formats/src/bink` is a port +to Rust of the one in Librempeg (https://github.com/librempeg/librempeg; +`libavcodec/bink2.c`, `bink2.h`, `bink2g.h`, `libavcodec/binkaudio.c` and +`libavformat/bink.c`), which is licensed under the GNU General Public License +version 3 or later and used here under version 3: + +``` +Copyright (c) 2014 Konstantin Shishkov +Copyright (c) 2019 Paul B Mahol +Copyright (c) 2007-2011 Peter Ross +Copyright (c) 2009 Daniel Verkamp +``` + +## FFmpeg + +The Bink 1 video decoder in `crates/rage-formats/src/bink` (`video1.rs`, +`tables1.rs`) is a port to Rust of the one in FFmpeg (https://ffmpeg.org; +`libavcodec/bink.c`, `binkdata.h` and `binkdsp.c`), which is licensed under the +GNU Lesser General Public License version 2.1 or later and used here under the +GNU General Public License version 3, as section 3 of the former allows: + +``` +Copyright (c) 2009 Konstantin Shishkov +Copyright (c) 2011 Peter Ross +``` + +Bink is a trademark of Epic Games Tools LLC (RAD Game Tools). OpenRAGE is not +affiliated with them and contains none of their code. + +## Leonida + +What is known about GTA VI's formats (RPF9 archives, audio containers, PSIN +and RBF0 metadata, texture pools) comes from the documentation of Leonida +(https://github.com/ItsNotRexed/Leonida, GPL-3.0). The PSIN reader in +`crates/rage-formats/src/psin.rs` follows its `tools/psin_data.py`, the +texture pool reader in `crates/rage-formats/src/ttpf.rs` its +`tools/ttpf_mips.py` and `tools/tex_headers.py`. + +## rpf9-explorer + +The layout of GTA VI's models (`crates/rage-formats/src/drawable6.rs`) is the +one found by rpf9-explorer (https://github.com/breadbbbb/rpf9-explorer). Its +decoder was read to learn the layout; no code was taken from it. + ## RDR2-RPF-Tool The TFIT2-CBC cipher and the strided file encryption of Red Dead Redemption 2 diff --git a/README.md b/README.md index bbcceac..4db5214 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,12 @@ # OpenRAGE -**The open-source successor to OpenIV β€” mod GTA V and Red Dead Redemption 2 on Linux and Windows.** +**The open-source successor to OpenIV β€” mod GTA V and Red Dead Redemption 2, and explore GTA VI, on Linux and Windows.** + +### 🌴 New: GTA VI works! + +**Browse and search its RPF9 archives, view the whole map in 3D, models, textures and animations, play sounds and videos.**
+[What works in GTA VI](https://two-play.github.io/openrage/gta-vi/) (read-only preview, with your own copy of the game) Browse and search every archive, preview textures, models, sounds and animations, read metadata as XML,
edit game text and install `.oiv` packages β€” compatible with OpenIV's `mods` folder, with undo. @@ -34,13 +39,13 @@ edit game text and install `.oiv` packages β€” compatible with OpenIV's `mods` f OpenIV's last release was in January 2022. OpenRAGE picks up where it left off and stays compatible with it. +- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; see the whole map in 3D; preview models with their materials, collisions, navigation meshes, textures, metadata and text tables, play sounds and videos, search names and text, list clip dictionaries and play them on vehicles, weapons, props and parts of people. - **Explorer and search:** archives, even nested ones, open like folders, as a list or as icons; names, hashes and full text of the whole game in milliseconds. -- **Every major format:** textures, models, audio, animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text. +- **Every major format:** textures, models, audio, videos (Bink 1 and 2, with a player), animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text. - **Coming from OpenIV?** Your `mods` folder and `.oiv` packages work as they are ([how to switch](https://two-play.github.io/openrage/getting-started/#coming-from-openiv)). - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **Ready for GTA VI:** support follows as fast as possible once GTA VI comes to PC. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)). @@ -61,8 +66,8 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p | Game | Archives | Formats | |---|---|---| | **GTA V** (Legacy & Enhanced) | βœ… read and edit (mods folder, with undo) | βœ… textures (also inside models) Β· models Β· audio Β· animations Β· metadata Β· text Β· collisions Β· paths Β· cutscenes Β· scripts Β· ASI mods (manager, Proton fix on Linux) Β· ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons Β· clip dictionaries (`.#cd`) Β· texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) Β· collisions (`.#bn`) Β· navigation meshes (`.#nv`) Β· maps in 3D Β· metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt` and others) Β· audio Β· videos | | **Red Dead Redemption 2** | βœ… read, with keys from your own game Β· ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) Β· models with moving parts and cloth Β· texts Β· metadata Β· audio Β· animations on fitting models Β· ped outfits (read-only) | -| **GTA VI** | πŸ”œ next: as fast as possible once it comes to PC | – | | **GTA IV** (Complete Edition) | βœ… read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures Β· models Β· collisions Β· animations Β· text Β· scripts Β· maps in 3D Β· cutscenes (played with their cast, camera, subtitles and particle effects) Β· particle effect lists (`.wpfl`) Β· editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. βœ… explorer (file list, preview, context menu, Settings β†’ Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) Β· plugin packages (`.orp`) with install/uninstall in the explorer and the CLI Β· models into game formats (`build-model`) Β· βœ… openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) @@ -71,6 +76,10 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p Download the [latest release](https://github.com/Two-Play/openrage/releases/latest) for Linux (AppImage, Flatpak or `.tar.gz`) or Windows (`.zip`) and start `openrage-gui`. On first start it finds your game and sets up the keys. Step by step: **[Getting started](https://two-play.github.io/openrage/getting-started/)**. +For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it (the keys are not stored), so archives open at once. Names are matched to the hashes in the tables; files without a match are listed under `entries/`. Without the executable, or with another build, the explorer indexes the archives in the background and caches the results, which can take several minutes for large archives; recovered entries are then grouped by file type and offset, with model names recovered from their data where possible. Editing RPF9 archives is not supported. + +The CLI also supports browsing, extraction and verification, for example `openrage --game ls common.rpf` and `openrage --game verify common.rpf` (or a folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification decodes the entries with checksum, size and bounds checks and returns an error on a failed entry; in the recovery view, unread data is outside its coverage. Nested archives are checked when their path is given. `verify --animations ` reads the clip dictionaries below a path, nested archives included; other format-specific verification and `--rebuild` are not supported for GTA VI yet. + To build from source (Rust, pinned in `rust-toolchain.toml`; on Linux also the fontconfig, xkbcommon, Wayland and ALSA development packages): ```sh @@ -84,7 +93,7 @@ cargo build --release # target/release/openrage-gui and target/release/open - [Explorer and search](https://two-play.github.io/openrage/guide/): the window, keyboard, search, settings - [Viewing files](https://two-play.github.io/openrage/viewers/): what each format shows and exports - [Modding](https://two-play.github.io/openrage/modding/): edit mode, editing archives, undo, `.oiv` packages, the `mods` folder -- [GTA IV](https://two-play.github.io/openrage/gta-iv/) and [Red Dead Redemption 2](https://two-play.github.io/openrage/rdr2/): setup and what works per game +- [GTA VI](https://two-play.github.io/openrage/gta-vi/), [GTA IV](https://two-play.github.io/openrage/gta-iv/) and [Red Dead Redemption 2](https://two-play.github.io/openrage/rdr2/): setup and what works per game - [Command line](https://two-play.github.io/openrage/cli/): every `openrage` command - [Writing plugins](https://two-play.github.io/openrage/plugins/): sandboxed WebAssembly plugins, SDK and API - [Development](https://two-play.github.io/openrage/development/): building from source, build environment, releases, project layout @@ -95,4 +104,4 @@ The website lives in [`site/`](site/) and is built from Markdown. GPL-3.0-only, except `crates/rage-tfit2` (the RDR2 archive cipher, ported from an AGPL-3.0 project), which is AGPL-3.0-only, and the plugin interface and SDK (`crates/openrage-plugins/wit`, `plugins/`), which are MIT OR Apache-2.0 so that plugins may use any licence. See [LICENSE](LICENSE) and [NOTICE.md](NOTICE.md) for third-party attributions, and [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md) for the licenses of all third-party crates in the programs (generated from `Cargo.lock`, checked in CI). The same is in the app under **Help β†’ About OpenRAGE**, via `openrage licenses` and on the [licenses page](https://two-play.github.io/openrage/licenses/). -Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. The screenshots show OpenRAGE displaying files from the author's own copy of the game. +Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md index 8dff725..65eecd2 100644 --- a/THIRD_PARTY_LICENSES.md +++ b/THIRD_PARTY_LICENSES.md @@ -3,7 +3,7 @@ OpenRAGE is licensed under the GPL-3.0-only (see `LICENSE`); `crates/rage-tfit2` under the AGPL-3.0-only. Credits for format knowledge and ported code are in `NOTICE.md`. -The OpenRAGE programs contain the following 546 Rust crates. Their license texts +The OpenRAGE programs contain the following 547 Rust crates. Their license texts follow, each with the crates it applies to. This file is generated by `dev/third_party_licenses.py`; do not edit it by hand. @@ -281,6 +281,7 @@ This file is generated by `dev/third_party_licenses.py`; do not edit it by hand. | [once_cell_polyfill](https://github.com/polyfill-rs/once_cell_polyfill) | 1.70.2 | MIT OR Apache-2.0 | | [oozextract](https://github.com/lvlvllvlvllvlvl/oozextract) | 0.5.7 | MIT | | [option-ext](https://github.com/soc/option-ext.git) | 0.2.0 | MPL-2.0 | +| [opus-rs](https://github.com/restsend/opus-rs) | 0.1.42 | BSD-3-Clause | | [ordered-float](https://github.com/reem/rust-ordered-float) | 5.5.1 | MIT | | [ordered-stream](https://github.com/danieldg/ordered-stream) | 0.2.0 | MIT OR Apache-2.0 | | [os_pipe](https://github.com/oconnor663/os_pipe.rs) | 1.2.3 | MIT | @@ -8365,6 +8366,60 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #44 +Used by: opus-rs 0.1.42 + +~~~~text + +Copyright 2026 restsend.com + +Copyright 2001-2023 Xiph.Org, Skype Limited, Octasic, + Jean-Marc Valin, Timothy B. Terriberry, + CSIRO, Gregory Maxwell, Mark Borgerding, + Erik de Castro Lopo, Mozilla, Amazon + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +- Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Opus is subject to the royalty-free patent licenses which are +specified at: + +Xiph.Org Foundation: +https://datatracker.ietf.org/ipr/1524/ + +Microsoft Corporation: +https://datatracker.ietf.org/ipr/1914/ + +Broadcom Corporation: +https://datatracker.ietf.org/ipr/1526/ +~~~~ + +### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #45 + Used by: encoding_rs 0.8.44 ~~~~text @@ -8424,7 +8479,7 @@ pub(crate) static GB18030_2022_OVERRIDE_BYTES: [[u8; 2]; 18] = [ ]; ~~~~ -### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #45 +### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #46 Used by: tiny-skia 0.11.4, tiny-skia 0.12.0, tiny-skia-path 0.11.4, tiny-skia-path 0.12.0 @@ -8461,7 +8516,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~~~~ -### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #46 +### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #47 Used by: encoding_rs 0.8.44 @@ -8494,7 +8549,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~~~~ -### Boost Software License 1.0 (BSL-1.0) #47 +### Boost Software License 1.0 (BSL-1.0) #48 Used by: error-code 3.4.0 @@ -8524,7 +8579,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### Boost Software License 1.0 (BSL-1.0) #48 +### Boost Software License 1.0 (BSL-1.0) #49 Used by: clipboard-win 5.4.3 @@ -8538,7 +8593,7 @@ The copyright notices in the Software and this entire statement, including the a THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### GNU General Public License v3.0 only (GPL-3.0-only) #49 +### GNU General Public License v3.0 only (GPL-3.0-only) #50 Used by: i-slint-backend-selector 1.18.1, i-slint-backend-winit 1.18.1, i-slint-common 1.18.1, i-slint-compiler 1.18.1, i-slint-core 1.18.1, i-slint-core-macros 1.18.1, i-slint-renderer-femtovg 1.18.1, i-slint-renderer-software 1.18.1, slint 1.18.1, slint-build 1.18.1, slint-macros 1.18.1 @@ -8777,7 +8832,7 @@ You should also get your employer (if you work as a programmer) or school, if an The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ~~~~ -### ISC License (ISC) #50 +### ISC License (ISC) #51 Used by: libloading 0.8.9 @@ -8796,7 +8851,7 @@ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE US THIS SOFTWARE. ~~~~ -### MIT License (MIT) #51 +### MIT License (MIT) #52 Used by: uds_windows 1.2.1 @@ -8824,7 +8879,7 @@ Used by: uds_windows 1.2.1 SOFTWARE ~~~~ -### MIT License (MIT) #52 +### MIT License (MIT) #53 Used by: cfg_aliases 0.2.2 @@ -8857,7 +8912,7 @@ The `cfg_aliases!` macro uses a lot of the code from [`tectonic_cfg_support::tar --- ~~~~ -### MIT License (MIT) #53 +### MIT License (MIT) #54 Used by: texpresso 2.0.2 @@ -8924,7 +8979,7 @@ where } ~~~~ -### MIT License (MIT) #54 +### MIT License (MIT) #55 Used by: mio 1.2.4 @@ -8950,7 +9005,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #55 +### MIT License (MIT) #56 Used by: libsqlite3-sys 0.39.1, rusqlite 0.41.1 @@ -8976,7 +9031,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #56 +### MIT License (MIT) #57 Used by: nom 8.0.0 @@ -9003,7 +9058,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #57 +### MIT License (MIT) #58 Used by: float-cmp 0.9.0 @@ -9029,7 +9084,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #58 +### MIT License (MIT) #59 Used by: wayland-backend 0.3.17, wayland-client 0.31.15, wayland-cursor 0.31.14, wayland-protocols 0.32.13, wayland-protocols-plasma 0.3.12, wayland-protocols-wlr 0.3.12, wayland-scanner 0.31.11, wayland-sys 0.31.11 @@ -9055,7 +9110,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #59 +### MIT License (MIT) #60 Used by: ordered-float 5.5.1 @@ -9087,7 +9142,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #60 +### MIT License (MIT) #61 Used by: dlib 0.5.3 @@ -9113,7 +9168,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #61 +### MIT License (MIT) #62 Used by: memoffset 0.9.1 @@ -9139,7 +9194,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #62 +### MIT License (MIT) #63 Used by: bytes 1.12.1 @@ -9171,7 +9226,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #63 +### MIT License (MIT) #64 Used by: smithay-client-toolkit 0.19.2 @@ -9197,7 +9252,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #64 +### MIT License (MIT) #65 Used by: calloop 0.13.0 @@ -9223,7 +9278,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #65 +### MIT License (MIT) #66 Used by: slab 0.4.12 @@ -9255,7 +9310,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #66 +### MIT License (MIT) #67 Used by: tracing 0.1.44, tracing-attributes 0.1.31, tracing-core 0.1.36 @@ -9287,7 +9342,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #67 +### MIT License (MIT) #68 Used by: pico-args 0.5.0 @@ -9313,7 +9368,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #68 +### MIT License (MIT) #69 Used by: pin-weak 1.1.0 @@ -9339,7 +9394,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #69 +### MIT License (MIT) #70 Used by: clru 0.6.3 @@ -9365,7 +9420,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #70 +### MIT License (MIT) #71 Used by: strict-num 0.1.1 @@ -9391,7 +9446,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #71 +### MIT License (MIT) #72 Used by: calloop-wayland-source 0.3.0 @@ -9417,7 +9472,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #72 +### MIT License (MIT) #73 Used by: wayland-csd-frame 0.3.0 @@ -9443,7 +9498,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #73 +### MIT License (MIT) #74 Used by: zbus 5.19.0, zbus_macros 5.19.0, zbus_names 4.3.5, zbus_xml 5.2.1, zvariant 5.15.1, zvariant_derive 5.15.1 @@ -9475,7 +9530,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #74 +### MIT License (MIT) #75 Used by: zcheapstr 1.2.0 @@ -9507,7 +9562,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #75 +### MIT License (MIT) #76 Used by: winresource 0.1.34 @@ -9539,7 +9594,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #76 +### MIT License (MIT) #77 Used by: synstructure 0.14.0 @@ -9553,7 +9608,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #77 +### MIT License (MIT) #78 Used by: wayland-protocols 0.32.13 @@ -9593,7 +9648,7 @@ The above is the version of the MIT "Expat" License used by X.org: http://cgit.freedesktop.org/xorg/xserver/tree/COPYING ~~~~ -### MIT License (MIT) #78 +### MIT License (MIT) #79 Used by: glutin-winit 0.5.0 @@ -9619,7 +9674,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #79 +### MIT License (MIT) #80 Used by: texpresso 2.0.2 @@ -9648,7 +9703,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #80 +### MIT License (MIT) #81 Used by: tree_magic_mini 3.2.2 @@ -9676,7 +9731,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #81 +### MIT License (MIT) #82 Used by: imagesize 0.15.0 @@ -9704,7 +9759,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #82 +### MIT License (MIT) #83 Used by: alsa-sys 0.4.0 @@ -9732,7 +9787,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #83 +### MIT License (MIT) #84 Used by: rgb 0.8.53 @@ -9760,7 +9815,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #84 +### MIT License (MIT) #85 Used by: strum 0.28.0, strum_macros 0.28.0 @@ -9788,7 +9843,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #85 +### MIT License (MIT) #86 Used by: ashpd 0.11.1 @@ -9816,7 +9871,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #86 +### MIT License (MIT) #87 Used by: cfg_aliases 0.2.2 @@ -9832,7 +9887,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #87 +### MIT License (MIT) #88 Used by: xcursor 0.3.11 @@ -9860,7 +9915,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #88 +### MIT License (MIT) #89 Used by: rfd 0.15.4, sctk-adwaita 0.10.1 @@ -9888,7 +9943,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #89 +### MIT License (MIT) #90 Used by: convert_case 0.10.0 @@ -9916,7 +9971,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #90 +### MIT License (MIT) #91 Used by: dpi 0.1.2, libm 0.2.16, oozextract 0.5.7, rspolib 0.1.2, taffy 0.10.1 @@ -9941,7 +9996,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTI USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #91 +### MIT License (MIT) #92 Used by: tokio 1.54.1 @@ -9969,7 +10024,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #92 +### MIT License (MIT) #93 Used by: simd-adler32 0.3.10 @@ -9997,7 +10052,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #93 +### MIT License (MIT) #94 Used by: wayland-protocols-plasma 0.3.12 @@ -10023,7 +10078,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #94 +### MIT License (MIT) #95 Used by: endi 1.1.1, x11-dl 2.21.0, zbus-lockstep 0.5.2, zbus-lockstep-macros 0.5.2, zmij 1.0.23, zvariant_utils 4.2.0 @@ -10053,7 +10108,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #95 +### MIT License (MIT) #96 Used by: winnow 1.0.5 @@ -10078,7 +10133,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #96 +### MIT License (MIT) #97 Used by: pulldown-cmark 0.13.6 @@ -10106,7 +10161,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #97 +### MIT License (MIT) #98 Used by: tracing-core 0.1.36, zip 9.5.0 @@ -10134,7 +10189,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #98 +### MIT License (MIT) #99 Used by: xml-rs 0.8.29 @@ -10162,7 +10217,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #99 +### MIT License (MIT) #100 Used by: natord 1.0.9 @@ -10190,7 +10245,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #100 +### MIT License (MIT) #101 Used by: phf 0.13.1, phf_generator 0.13.1, phf_macros 0.13.1, phf_shared 0.13.1 @@ -10217,7 +10272,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #101 +### MIT License (MIT) #102 Used by: byteorder 1.5.0, byteorder-lite 0.1.0, memchr 2.8.3, termcolor 1.4.1 @@ -10245,7 +10300,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #102 +### MIT License (MIT) #103 Used by: strsim 0.11.1 @@ -10275,7 +10330,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #103 +### MIT License (MIT) #104 Used by: derive_more 2.1.1, derive_more-impl 2.1.1 @@ -10303,7 +10358,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #104 +### MIT License (MIT) #105 Used by: color_quant 1.1.0 @@ -10331,7 +10386,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #105 +### MIT License (MIT) #106 Used by: winapi-util 0.1.11 @@ -10359,7 +10414,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #106 +### MIT License (MIT) #107 Used by: xmlwriter 0.1.0 @@ -10387,7 +10442,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #107 +### MIT License (MIT) #108 Used by: fontdb 0.24.0 @@ -10415,7 +10470,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #108 +### MIT License (MIT) #109 Used by: xkbcommon-dl 0.4.2 @@ -10443,7 +10498,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #109 +### MIT License (MIT) #110 Used by: harfrust 0.12.0 @@ -10472,7 +10527,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #110 +### MIT License (MIT) #111 Used by: yeslogic-fontconfig-sys 6.0.1 @@ -10503,7 +10558,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #111 +### MIT License (MIT) #112 Used by: os_pipe 1.2.3 @@ -10529,7 +10584,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #112 +### MIT License (MIT) #113 Used by: generic-array 0.14.7 @@ -10557,7 +10612,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #113 +### MIT License (MIT) #114 Used by: quick-xml 0.41.0 @@ -10587,7 +10642,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #114 +### MIT License (MIT) #115 Used by: urlencoding 2.1.3 @@ -10614,7 +10669,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### Mozilla Public License 2.0 (MPL-2.0) #115 +### Mozilla Public License 2.0 (MPL-2.0) #116 Used by: symphonia 0.6.1, symphonia-bundle-mp3 0.6.1, symphonia-core 0.6.1, symphonia-metadata 0.6.1 @@ -10994,7 +11049,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice defined by the Mozilla Public License, v. 2.0. ~~~~ -### Mozilla Public License 2.0 (MPL-2.0) #116 +### Mozilla Public License 2.0 (MPL-2.0) #117 Used by: option-ext 0.2.0 @@ -11374,7 +11429,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice defined by the Mozilla Public License, v. 2.0. ~~~~ -### Unicode License v3 (Unicode-3.0) #117 +### Unicode License v3 (Unicode-3.0) #118 Used by: unicode-ident 1.0.27 @@ -11420,7 +11475,7 @@ dealings in these Data Files or Software without prior written authorization of the copyright holder. ~~~~ -### Unicode License v3 (Unicode-3.0) #118 +### Unicode License v3 (Unicode-3.0) #119 Used by: fixed_decimal 0.7.3, icu_collections 2.4.0, icu_decimal 2.4.0, icu_decimal_data 2.4.0, icu_locale_core 2.4.0, icu_locale_fallback 2.4.0, icu_locale_fallback_data 2.4.0, icu_normalizer 2.4.0, icu_normalizer_data 2.4.0, icu_properties 2.4.0, icu_properties_data 2.4.0, icu_provider 2.4.0, icu_segmenter 2.4.0, icu_segmenter_data 2.4.0, litemap 0.8.3, potential_utf 0.1.6, tinystr 0.8.5, writeable 0.6.4, yoke 0.8.4, yoke-derive 0.8.4, zerofrom 0.1.8, zerofrom-derive 0.1.8, zerotrie 0.2.5, zerovec 0.11.9, zerovec-derive 0.11.7 @@ -11473,7 +11528,7 @@ Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. ICU 1.8.1 to ICU 57.1 Β© 1995-2016 International Business Machines Corporation and others. ~~~~ -### zlib License (Zlib) #119 +### zlib License (Zlib) #120 Used by: slotmap 1.1.1 @@ -11499,7 +11554,7 @@ the following restrictions: 3. This notice may not be removed or altered from any source distribution. ~~~~ -### zlib License (Zlib) #120 +### zlib License (Zlib) #121 Used by: foldhash 0.1.5, foldhash 0.2.0 diff --git a/crates/openrage-app/Cargo.toml b/crates/openrage-app/Cargo.toml index 3a3572c..c4a724f 100644 --- a/crates/openrage-app/Cargo.toml +++ b/crates/openrage-app/Cargo.toml @@ -24,4 +24,5 @@ png = "0.18" zip.workspace = true [dev-dependencies] +flate2.workspace = true zip = { version = "9", default-features = false, features = ["deflate-flate2"] } diff --git a/crates/openrage-app/src/anim.rs b/crates/openrage-app/src/anim.rs index a737cd6..94f4f54 100644 --- a/crates/openrage-app/src/anim.rs +++ b/crates/openrage-app/src/anim.rs @@ -6,7 +6,7 @@ use rage_formats::math::{self, Mat4}; use crate::expr::Local; -/// Reads a clip dictionary (`.ycd`, GTA V or RDR2; GTA IV `.wad`) or a cutscene's +/// Reads a clip dictionary (`.ycd`, GTA V or RDR2; GTA IV `.wad`; GTA VI `.#cd`) or a cutscene's /// animation (`.cut`, its sections joined), mods included. pub fn load_clips( game_dir: &std::path::Path, @@ -25,6 +25,10 @@ pub fn load_clips( rpf.entries().and_then(|e| e.get(i)).ok_or_else(|| anyhow::anyhow!("archive table not readable"))?; Ok(rage_formats::clip::parse_ycd(&rpf.read_resource(entry)?)?) } + Node::Rpf9File(rpf, i) => { + let (system, graphics) = crate::rpf9::resource(&rpf, i)?; + Ok(rage_formats::clip6::parse(&rage_resource::Resource { version: 0, system, graphics })?) + } _ => anyhow::bail!("{vpath} is not a file inside an archive"), } } @@ -88,7 +92,8 @@ impl Binding { pub fn new(skeleton: &Skeleton, animation: &Animation) -> Self { let mut tracks = vec![[None; 3]; skeleton.bones.len()]; for (i, t) in animation.tracks.iter().enumerate() { - let Some(b) = skeleton.find_tag(t.bone) else { continue }; + let found = if t.bone_hash != 0 { skeleton.find_hash(t.bone_hash) } else { skeleton.find_tag(t.bone) }; + let Some(b) = found else { continue }; let slot = match t.track { TRACK_BONE_TRANSLATION => 0, TRACK_BONE_ROTATION => 1, @@ -224,7 +229,7 @@ mod tests { let animation = Animation::from_frames( 1, 0.0, - vec![BoneTrack { bone: 1, format: 1, track: TRACK_BONE_ROTATION }], + vec![BoneTrack { bone: 1, format: 1, track: TRACK_BONE_ROTATION, ..Default::default() }], vec![vec![[0.0, 0.0, h, h]]], ); let binding = Binding::new(&skeleton, &animation); diff --git a/crates/openrage-app/src/audio.rs b/crates/openrage-app/src/audio.rs index 8870310..a93952e 100644 --- a/crates/openrage-app/src/audio.rs +++ b/crates/openrage-app/src/audio.rs @@ -18,6 +18,7 @@ pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result let data = match node { Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => std::fs::read(p)?, + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, _ => bail!("{vpath} is not a file"), }; parse(data, keys.as_deref()) diff --git a/crates/openrage-app/src/detect.rs b/crates/openrage-app/src/detect.rs index 5f532e1..a537650 100644 --- a/crates/openrage-app/src/detect.rs +++ b/crates/openrage-app/src/detect.rs @@ -74,12 +74,39 @@ pub fn is_rdr2_dir(dir: &Path) -> bool { dir.join(RDR2_EXE).is_file() } +/// The program in the GTA VI Scarlett build. +pub const GTA6_EXE: &str = "game_scarlett_master.exe"; + +/// Whether a folder holds GTA VI: its Scarlett executable or archives in the +/// RPF9 format. Archives can also be explored without the executable through +/// the recovery view (see [`rage_rpf::rpf9`]). +pub fn is_gta6_dir(dir: &Path) -> bool { + if is_gta5_dir(dir) || is_rdr2_dir(dir) || crate::gta4::is_gta4_dir(dir) { + return false; + } + if dir.join(GTA6_EXE).is_file() || rage_rpf::Rpf9::file_is_rpf9(&dir.join("common.rpf")) { + return true; + } + let Ok(rd) = fs::read_dir(dir) else { return false }; + rd.flatten() + .map(|e| e.path()) + .filter(|p| p.extension().is_some_and(|x| x.eq_ignore_ascii_case("rpf"))) + .any(|p| rage_rpf::Rpf9::file_is_rpf9(&p)) +} + +/// Whether a folder holds a game OpenRAGE can open. +pub fn is_game_dir(dir: &Path) -> bool { + is_gta5_dir(dir) || is_rdr2_dir(dir) || crate::gta4::is_gta4_dir(dir) || is_gta6_dir(dir) +} + /// The icon of the game in `dir`, from its own program: (width, height, RGBA). pub fn game_icon(dir: &Path) -> Option<(u32, u32, Vec)> { let programs: &[&str] = if is_rdr2_dir(dir) { &[RDR2_EXE] } else if crate::gta4::is_gta4_dir(dir) { &["GTAIV.exe"] + } else if is_gta6_dir(dir) { + &[GTA6_EXE] } else { &["GTA5_Enhanced.exe", "GTA5.exe", "PlayGTAV.exe"] }; @@ -87,7 +114,7 @@ pub fn game_icon(dir: &Path) -> Option<(u32, u32, Vec)> { } /// Short name of the game installed in `dir`: "GTA V Enhanced", "GTA V", -/// "GTA IV", "RDR2", or `None` when no known executable is there. +/// "GTA IV", "RDR2", "GTA VI", or `None` when the folder holds no known game. pub fn game_name(dir: &Path) -> Option<&'static str> { if is_rdr2_dir(dir) { Some("RDR2") @@ -97,6 +124,8 @@ pub fn game_name(dir: &Path) -> Option<&'static str> { Some("GTA V") } else if crate::gta4::is_gta4_dir(dir) { Some("GTA IV") + } else if is_gta6_dir(dir) { + Some("GTA VI") } else { None } @@ -130,6 +159,35 @@ pub fn collect_rpfs(dir: &Path, out: &mut Vec) { mod tests { use super::*; + #[test] + fn detects_gta6_from_scarlett_executable_or_rpf9_archives() { + let dir = std::env::temp_dir().join(format!("openrage-detect-gta6-{}", std::process::id())); + let _ = fs::remove_dir_all(&dir); + fs::create_dir_all(&dir).unwrap(); + assert!(!is_game_dir(&dir)); + + // The executable identifies the game even before archives are copied. + fs::write(dir.join(GTA6_EXE), b"MZ").unwrap(); + assert!(is_gta6_dir(&dir)); + assert!(is_game_dir(&dir)); + assert_eq!(game_name(&dir), Some("GTA VI")); + fs::remove_file(dir.join(GTA6_EXE)).unwrap(); + + // Archive-only copies remain supported. A non-RPF9 common.rpf must + // not hide another archive with the RPF9 signature. + fs::write(dir.join("common.rpf"), b"unrelated data").unwrap(); + assert!(!is_gta6_dir(&dir)); + fs::write(dir.join("data.RPF"), b"9FPR").unwrap(); + assert!(is_gta6_dir(&dir)); + assert_eq!(game_name(&dir), Some("GTA VI")); + + // An RPF9 file copied into another game's folder does not switch it. + fs::write(dir.join("GTA5.exe"), b"MZ").unwrap(); + assert!(!is_gta6_dir(&dir)); + assert_eq!(game_name(&dir), Some("GTA V")); + fs::remove_dir_all(&dir).unwrap(); + } + #[test] fn parses_library_folders() { let vdf = r#" diff --git a/crates/openrage-app/src/gta4_cutscene.rs b/crates/openrage-app/src/gta4_cutscene.rs index 7d350bd..0f3b674 100644 --- a/crates/openrage-app/src/gta4_cutscene.rs +++ b/crates/openrage-app/src/gta4_cutscene.rs @@ -1451,7 +1451,7 @@ FX_CS_spit:effect1_0 0 1205 500 500 0 0 0 0 0 0 0\n[/EFFECTS]\n[DURATION]\n2000\ #[test] fn props_move_by_their_root() { use rage_formats::clip::BoneTrack; - let track = |bone, track, format| BoneTrack { bone, format, track }; + let track = |bone, track, format| BoneTrack { bone, format, track, ..Default::default() }; let body = Animation::from_frames( 2, 1.0, diff --git a/crates/openrage-app/src/gta6_models.rs b/crates/openrage-app/src/gta6_models.rs new file mode 100644 index 0000000..7f654a6 --- /dev/null +++ b/crates/openrage-app/src/gta6_models.rs @@ -0,0 +1,322 @@ +//! GTA VI models. +//! +//! A model is stored as its system part and then its graphics part. The +//! archive's table says how long they are. In the recovery view both are cut into zlib streams of 64 KiB. Without the table of contents nothing +//! says where one part ends: the recovery view lists a resource as its first +//! entry (which starts the system part) and what follows it. So the parts +//! are found by trying: every cut between two streams is a possible end of +//! the system part, and the reader says whether the graphics part reaches +//! far enough. + +use std::collections::HashSet; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex}; + +use anyhow::{Context, Result, bail}; +use rage_formats::drawable::{Bone, Drawable, Skeleton}; +use rage_formats::drawable6::{self, ModelError}; +use rage_formats::math; +use rage_rpf::Rpf9; + +/// Streams unpack to this many bytes, the last one of a part to fewer. +const STREAM: usize = 0x10000; +/// A system part is at most this long. +const MAX_SYSTEM: usize = 32 << 20; +/// A resource is at most this long, and spread over at most this many entries. +const MAX_RESOURCE: usize = 256 << 20; +const MAX_ENTRIES: usize = 4096; + +/// Reads the model that starts at entry `index`: its drawables with their names. +pub fn load(rpf: &Rpf9, index: usize) -> Result> { + let entries = rpf.entries()?; + let first = entries.get(index).context("no such entry")?; + let mut data = rpf.read(first)?; + if drawable6::root(&data).is_none() { + bail!("this resource is not a model"); + } + if let Some((system, _)) = rpf.resource_parts(first) { + let (system, graphics) = data.split_at_checked(system as usize).context("the resource is cut off")?; + return Ok(named(drawable6::parse(system, graphics)?)); + } + // Where streams end: the possible ends of the system part. + let mut cuts: Vec = (1..=data.len().div_ceil(STREAM)).map(|i| (i * STREAM).min(data.len())).collect(); + let mut last = index; + loop { + let mut needs_more = false; + let mut failure = None; + for cut in cuts.iter().copied().take_while(|c| *c <= MAX_SYSTEM) { + match drawable6::parse(&data[..cut], &data[cut..]) { + Ok(drawables) => return Ok(named(drawables)), + Err(ModelError::Graphics(_)) => needs_more = true, + Err(e) => failure = failure.or(Some(e)), + } + } + // The graphics part goes on in the next entry. + if !needs_more || !Rpf9::follows(&entries, last) || last - index >= MAX_ENTRIES || data.len() >= MAX_RESOURCE { + match failure { + Some(e) if !needs_more => bail!(e), + _ => bail!("the model's vertex and index data was not found after it"), + } + } + last += 1; + let more = rpf.read(&entries[last])?; + let start = data.len(); + data.extend_from_slice(&more); + cuts.extend((1..=more.len().div_ceil(STREAM)).map(|i| start + (i * STREAM).min(more.len()))); + } +} + +fn named(drawables: Vec) -> Vec<(String, Drawable)> { + drawables + .into_iter() + .enumerate() + .map(|(i, d)| (if d.name.is_empty() { format!("drawable {i}") } else { d.name.clone() }, d)) + .collect() +} + +/// The archive with the skeletons people and animals are put together on. +const BASE_SKELETONS: &str = "packs.rpf/packs/base/models/metaped_fragments.rpf"; + +/// A vertex with less weight than this on known bones moves with the nearest. +const MIN_WEIGHT: f32 = 0.3; + +type Skeletons = Arc>; + +/// The base skeletons of the game with their file names (read once). +fn base_skeletons(game: &Path) -> Skeletons { + static CACHE: Mutex> = Mutex::new(None); + let mut cache = CACHE.lock().unwrap_or_else(|e| e.into_inner()); + if let Some((of, found)) = &*cache + && of == game + { + return Arc::clone(found); + } + let found = Arc::new(rage_rpf::in_own_threads(|| read_base_skeletons(game)).unwrap_or_default()); + *cache = Some((game.to_path_buf(), Arc::clone(&found))); + found +} + +fn read_base_skeletons(game: &Path) -> Result> { + use rayon::prelude::*; + let (node, _) = rage_mods::resolve(game, BASE_SKELETONS, None)?; + let rage_rpf::vfs::Node::Rpf9Dir(rpf, _) = node else { bail!("no archive") }; + let entries = rpf.entries()?; + let mut found: Vec<(String, Skeleton)> = (0..entries.len()) + .into_par_iter() + .filter_map(|i| { + let name = rpf.entry_name(&entries[i]).to_ascii_lowercase(); + let (system, graphics) = crate::rpf9::resource(&rpf, i).ok()?; + let skeleton = drawable6::parse(&system, &graphics).ok()?.into_iter().next()?.skeleton?; + Some((name.rsplit('/').next().unwrap_or(&name).to_owned(), skeleton)) + }) + .collect(); + found.sort_by(|a, b| a.0.cmp(&b.0)); + Ok(found) +} + +/// Binds meshes that name bones of another skeleton (parts of people and +/// animals) to it, and gives that skeleton. `None` if there are none, or the +/// game has no skeleton for them. +pub(crate) fn bind(game: &Path, file: &str, drawables: &mut [(String, Drawable)]) -> Option { + let wanted: HashSet = + drawables.iter().flat_map(|(_, d)| &d.meshes).flat_map(|m| &m.bone_hashes).copied().collect(); + if wanted.is_empty() { + return None; + } + let bases = base_skeletons(game); + let mut skeleton = best_base(&bases, file, &wanted)?.clone(); + bind_to(&mut skeleton, drawables); + Some(skeleton) +} + +/// The skeleton with the most of the bones; of several with as many, the one +/// whose name is most like the file's. `None` if none has any of them, and +/// the file's name does not tell either. +fn best_base<'a>(bases: &'a [(String, Skeleton)], file: &str, wanted: &HashSet) -> Option<&'a Skeleton> { + let file = file.to_ascii_lowercase(); + let words: Vec<&str> = file.split(['_', '.', '+']).collect(); + // `fr1`, `mo1`, …: a woman's or a man's part, of one of the builds. + let sex = words.iter().find_map(|w| match w.as_bytes() { + [b'f', b'a'..=b'z', b'0'..=b'9'] => Some("ambient_femalebody.#ft"), + [b'm', b'a'..=b'z', b'0'..=b'9'] => Some("ambient_malebody.#ft"), + _ => None, + }); + let rated = bases.iter().filter_map(|(name, skeleton)| { + let own: HashSet = skeleton.bones.iter().map(|b| rage_core::hash::joaat(&b.name)).collect(); + let has = wanted.iter().filter(|h| own.contains(h)).count(); + let alike = words.iter().filter(|w| w.len() > 2 && name.contains(**w)).count(); + (has > 0 || sex == Some(name)).then_some(((has, sex == Some(name), alike), skeleton)) + }); + // The first one of the best. + rated.reduce(|best, next| if next.0 > best.0 { next } else { best }).map(|(_, s)| s) +} + +/// Binds the meshes to the skeleton, which gets the bones it lacks from the +/// drawables' own (hair, garments). +fn bind_to(skeleton: &mut Skeleton, drawables: &mut [(String, Drawable)]) { + let places = + |s: &Skeleton| -> Vec<[f32; 3]> { s.world_transforms().iter().map(|m| [m[12], m[13], m[14]]).collect() }; + // The main bones of the body, with their places. + let body: Vec<(usize, [f32; 3])> = places(skeleton) + .into_iter() + .enumerate() + .filter(|(i, _)| skeleton.bones[*i].name.starts_with("SKEL_")) + .collect(); + let nearest = |at: &[f32; 3]| -> Option { + let far = |p: &[f32; 3]| (0..3).map(|k| (p[k] - at[k]).powi(2)).sum::(); + body.iter().min_by(|a, b| far(&a.1).total_cmp(&far(&b.1))).map(|(i, _)| *i) + }; + // Where the bones of each drawable's own skeleton are. + let mut of_own: Vec> = Vec::new(); + for (_, d) in drawables.iter() { + let Some(own) = &d.skeleton else { + of_own.push(Vec::new()); + continue; + }; + let at = places(own); + let mut placed: Vec = Vec::with_capacity(own.bones.len()); + for (i, b) in own.bones.iter().enumerate() { + if let Some(there) = skeleton.find_hash(rage_core::hash::joaat(&b.name)) { + placed.push(there as i16); + continue; + } + let mut bone = b.clone(); + bone.parent = match usize::try_from(b.parent).ok().and_then(|p| placed.get(p)) { + Some(&p) => p, + // Loose: it hangs from the nearest bone of the body. + None => { + let Some(nearest) = nearest(&at[i]) else { + placed.push(0); + continue; + }; + attach(&mut bone, skeleton, nearest); + nearest as i16 + } + }; + placed.push(skeleton.bones.len() as i16); + skeleton.bones.push(bone); + } + of_own.push(placed); + } + for (k, (_, d)) in drawables.iter_mut().enumerate() { + for mesh in &mut d.meshes { + if mesh.bone_hashes.is_empty() { + // Bound to the drawable's own skeleton. + let own = &of_own[k]; + let there = |b: u16| own.get(usize::from(b)).map_or(b, |&b| b as u16); + mesh.bone_indices.iter_mut().flatten().for_each(|b| *b = there(*b)); + continue; + } + let map: Vec> = + mesh.bone_hashes.iter().map(|&h| skeleton.find_hash(h).map(|b| b as u16)).collect(); + mesh.bone_hashes.clear(); + let vertices = mesh.positions.iter().zip(mesh.bone_indices.iter_mut().zip(&mut mesh.bone_weights)); + for (position, (bones, weights)) in vertices { + // Bones of yet another skeleton do not count. + for (b, w) in bones.iter_mut().zip(weights.iter_mut()) { + match map.get(usize::from(*b)).copied().flatten() { + Some(there) => *b = there, + None => (*b, *w) = (0, 0.0), + } + } + let total: f32 = weights.iter().sum(); + if total > MIN_WEIGHT { + weights.iter_mut().for_each(|w| *w /= total); + } else { + *bones = [nearest(position).unwrap_or(0) as u16, 0, 0, 0]; + *weights = [1.0, 0.0, 0.0, 0.0]; + } + } + } + } +} + +/// Moves a bone without a parent under one of the skeleton's, where it stays. +fn attach(bone: &mut Bone, skeleton: &Skeleton, parent: usize) { + let inverse = math::inverse_affine(&skeleton.world_transforms()[parent]); + bone.translation = math::transform_point(&inverse, bone.translation); + let (mut turn, mut at) = ([0.0, 0.0, 0.0, 1.0], Some(parent)); + while let Some(b) = at.and_then(|i| skeleton.bones.get(i)) { + turn = turned(b.rotation, turn); + at = usize::try_from(b.parent).ok(); + } + let back = [-turn[0], -turn[1], -turn[2], turn[3]]; + bone.rotation = turned(back, bone.rotation); +} + +/// The rotation `b`, then `a`. +fn turned(a: [f32; 4], b: [f32; 4]) -> [f32; 4] { + let ([ax, ay, az, aw], [bx, by, bz, bw]) = (a, b); + [ + aw * bx + ax * bw + ay * bz - az * by, + aw * by - ax * bz + ay * bw + az * bx, + aw * bz + ax * by - ay * bx + az * bw, + aw * bw - ax * bx - ay * by - az * bz, + ] +} + +#[cfg(test)] +mod tests { + use super::*; + use rage_core::hash::joaat; + use rage_formats::drawable::Mesh; + + fn bone(name: &str, parent: i16, translation: [f32; 3], rotation: [f32; 4]) -> Bone { + Bone { name: name.into(), tag: 0, parent, translation, rotation, scale: [1.0; 3] } + } + + fn body() -> Skeleton { + let half = std::f32::consts::FRAC_1_SQRT_2; + Skeleton { + bones: vec![ + bone("SKEL_ROOT", -1, [0.0, 0.0, 1.0], [0.0, 0.0, half, half]), + bone("SKEL_Head", 0, [0.0, 0.0, 0.7], [half, 0.0, 0.0, half]), + ], + } + } + + #[test] + fn parts_find_their_bones_by_name() { + let mesh = Mesh { + positions: vec![[0.0; 3], [0.0, 0.0, 1.8]], + bone_indices: vec![[0, 1, 2, 9], [2, 0, 0, 0]], + bone_weights: vec![[0.25, 0.25, 0.5, 0.0], [1.0, 0.0, 0.0, 0.0]], + bone_hashes: vec![joaat("GM_Collar"), joaat("SKEL_ROOT"), joaat("unknown")], + ..Default::default() + }; + let own = Skeleton { bones: vec![bone("GM_Collar", -1, [0.1, 0.2, 1.6], [0.0, 0.0, 0.0, 1.0])] }; + let mut drawables = + vec![("part".into(), Drawable { meshes: vec![mesh], skeleton: Some(own), ..Default::default() })]; + let mut skeleton = body(); + bind_to(&mut skeleton, &mut drawables); + // Unknown bones do not count; what has no others moves with the nearest. + let mesh = &drawables[0].1.meshes[0]; + assert_eq!(mesh.bone_indices, [[2, 0, 0, 0], [1, 0, 0, 0]]); + assert_eq!(mesh.bone_weights, [[0.5, 0.5, 0.0, 0.0], [1.0, 0.0, 0.0, 0.0]]); + // The garment's bone stays where it was. + assert_eq!(skeleton.bones[2].parent, 1); + let world = skeleton.world_transforms()[2]; + let expected = math::from_trs([0.1, 0.2, 1.6], [0.0, 0.0, 0.0, 1.0], [1.0; 3]); + assert!(world.iter().zip(expected).all(|(a, b)| (a - b).abs() < 1e-5), "{world:?}"); + } + + #[test] + fn the_skeleton_is_the_one_with_the_bones() { + let dog = Skeleton { bones: vec![bone("SKEL_Tail", -1, [0.0; 3], [0.0, 0.0, 0.0, 1.0])] }; + let bases = [ + ("ambient_femalebody.#ft".to_owned(), body()), + ("ambient_malebody.#ft".to_owned(), body()), + ("crm_dog_00.#ft".to_owned(), dog), + ]; + let pick = |file: &str, bones: &[&str]| { + let found = best_base(&bases, file, &bones.iter().map(|b| joaat(b)).collect()); + found.and_then(|s| bases.iter().position(|(_, b)| std::ptr::eq(b, s))) + }; + assert_eq!(pick("shirt_mr1_000.#dd", &["SKEL_Head"]), Some(1)); + assert_eq!(pick("shirt_fr1_000.#dd", &["SKEL_Head"]), Some(0)); + assert_eq!(pick("fur.#dd", &["SKEL_Tail"]), Some(2)); + assert_eq!(pick("fur.#dd", &["a", "b", "SKEL_Tail"]), Some(2)); + assert_eq!(pick("fur.#dd", &["a"]), None); + assert_eq!(pick("belt_fr1_000.#dd", &["a"]), Some(0)); + } +} diff --git a/crates/openrage-app/src/gta6_textures.rs b/crates/openrage-app/src/gta6_textures.rs new file mode 100644 index 0000000..926aad5 --- /dev/null +++ b/crates/openrage-app/src/gta6_textures.rs @@ -0,0 +1,170 @@ +//! GTA VI: the textures of models, which are in the texture pools. +//! +//! A model's shader names a texture by a 64-bit key; each texture pool +//! (`.ttpf`, see [`rage_formats::ttpf`]) lists the keys of its textures. So +//! the pools of a game are read once into a catalog of key β†’ pool and number. + +use std::collections::HashMap; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex, OnceLock, Weak}; + +use rage_formats::drawable::Drawable; +use rage_formats::drawable::param::{BUMP_TEX, DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX, SPECULAR_TEX}; +use rage_formats::drawable6::texture_name; +use rage_formats::texture::Texture; +use rage_formats::ttpf::Pool; +use rage_formats::ytd::{Layout, TextureDictionary}; + +/// Textures on a model are read at most this many pixels wide and high. +const MAX_SIDE: u32 = 1024; +/// A model gets at most this many textures. +const MAX_TEXTURES: usize = 64; + +/// Where the textures of a game are: per key, the pool and the number in it. +#[derive(Default)] +pub struct Catalog { + pools: Vec<(PathBuf, Pool)>, + by_key: HashMap, +} + +impl Catalog { + /// Reads the tables of all texture pools below `game_dir`. + fn build(game_dir: &Path) -> Catalog { + let mut files = Vec::new(); + crate::detect::collect_archives(game_dir, &["ttpf"], &mut files); + let mut catalog = Catalog::default(); + for file in files { + let Ok(pool) = Pool::open(&file) else { continue }; + for (number, key) in pool.keys().iter().enumerate().filter(|(_, key)| **key != 0) { + // The same texture can be in several pools: the first one that has data wins. + let has_data = pool.descriptor(number).is_some_and(|d| d.base.is_some()); + let known = catalog + .by_key + .get(key) + .is_some_and(|(p, n)| catalog.pools[*p].1.descriptor(*n).is_some_and(|d| d.base.is_some())); + if !known && (has_data || !catalog.by_key.contains_key(key)) { + catalog.by_key.insert(*key, (catalog.pools.len(), number)); + } + } + catalog.pools.push((file, pool)); + } + catalog + } + + pub fn len(&self) -> usize { + self.by_key.len() + } + + pub fn is_empty(&self) -> bool { + self.by_key.is_empty() + } + + /// The texture with this key, with mip levels, the same for all that use + /// it at the time. + pub fn shared(&self, key: u64, side: u32) -> Option> { + type Known = HashMap<(u64, u32), Weak>; + static KNOWN: OnceLock> = OnceLock::new(); + let lock = || KNOWN.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); + if let Some(known) = lock().get(&(key, side)).and_then(Weak::upgrade) { + return Some(known); + } + let (pool, number) = *self.by_key.get(&key)?; + let mut texture = self.pools[pool].1.texture_with_mips(number, Some(side)).ok()?; + texture.name = texture_name(key); + let mut known = lock(); + // Another thread may have been quicker. + if let Some(theirs) = known.get(&(key, side)).and_then(Weak::upgrade) { + return Some(theirs); + } + let texture = Arc::new(texture); + if known.len().is_power_of_two() { + known.retain(|_, t| t.strong_count() > 0); + } + known.insert((key, side), Arc::downgrade(&texture)); + Some(texture) + } + + /// The texture with this key, named by the key. + pub fn texture(&self, key: u64) -> Option { + let (pool, number) = *self.by_key.get(&key)?; + let mut texture = self.pools[pool].1.texture(number, Some(MAX_SIDE)).ok()?; + texture.name = texture_name(key); + Some(texture) + } +} + +/// The catalog of a game's texture pools; read on first use and kept. +pub fn catalog(game_dir: &Path) -> Arc { + static CATALOGS: OnceLock>>> = OnceLock::new(); + let mut catalogs = CATALOGS.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); + Arc::clone( + catalogs + .entry(game_dir.to_path_buf()) + .or_insert_with(|| Arc::new(rage_rpf::in_own_threads(|| Catalog::build(game_dir)))), + ) +} + +/// The names of the textures of shaders, of these kinds. +fn names<'a>(drawables: &'a [(String, Drawable)], wanted: &[u32]) -> Vec<&'a str> { + let mut names: Vec<&str> = drawables + .iter() + .flat_map(|(_, d)| &d.shaders) + .flat_map(|s| &s.samplers) + .filter(|(parameter, _)| wanted.contains(parameter)) + .map(|(_, name)| name.as_str()) + .collect(); + names.sort_unstable(); + names.dedup(); + names.truncate(MAX_TEXTURES); + names +} + +/// The textures of drawables, shared with other models: their colours, with +/// `all` normal and specular maps too. +pub fn shared_for(game_dir: &Path, drawables: &[(String, Drawable)], side: u32, all: bool) -> Vec> { + let wanted: &[u32] = if all { + &[DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX, BUMP_TEX, SPECULAR_TEX] + } else if side > 256 { + &[DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX] + } else { + &[DIFFUSE_TEX] + }; + let names = names(drawables, wanted); + if names.is_empty() { + return Vec::new(); + } + let catalog = catalog(game_dir); + let found = names.iter().filter_map(|n| catalog.shared(u64::from_str_radix(n, 16).ok()?, side)); + // Not the white stand-ins for a colour the game computes. + let stands_in = |t: &Texture| { + t.width <= 8 + && t.to_rgba().is_some_and(|rgba| rgba.as_chunks::<4>().0.iter().all(|p| p[..3].iter().all(|c| *c > 225))) + }; + found.filter(|t| !stands_in(t)).collect() +} + +/// The textures the shaders of these drawables name, from the pools of the +/// game: a dictionary of them, `None` if none was found. +pub fn for_drawables(game_dir: &Path, drawables: &[(String, Drawable)]) -> Option { + let names = names(drawables, &[DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX, BUMP_TEX, SPECULAR_TEX]); + if names.is_empty() { + return None; + } + let catalog = catalog(game_dir); + let total = names.len(); + let mut textures = Vec::new(); + for (i, name) in names.into_iter().enumerate() { + crate::progress::set("Loading textures", i as u64, total as u64); + if let Some(texture) = u64::from_str_radix(name, 16).ok().and_then(|key| catalog.texture(key)) { + textures.push(texture); + } + } + (!textures.is_empty()).then(|| TextureDictionary { + textures, + errors: Vec::new(), + layout: Layout::Enhanced, + version: 0, + root: Vec::new(), + stored: Vec::new(), + }) +} diff --git a/crates/openrage-app/src/gta6_world.rs b/crates/openrage-app/src/gta6_world.rs new file mode 100644 index 0000000..2f31b18 --- /dev/null +++ b/crates/openrage-app/src/gta6_world.rs @@ -0,0 +1,913 @@ +//! The map of GTA VI: where its map files (`.#map`) are, what they place, and +//! the models for it. +//! +//! A map file covers a small piece of the world, and there are more than +//! 160,000, so reading all of them takes a minute or two. What is needed of +//! them is kept (`/openrage/gta6-world-.bin`) until the search +//! index changes. + +use std::collections::{BTreeMap, HashMap, HashSet}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::{Arc, Mutex}; + +use anyhow::{Context, Result}; +use rage_core::bytes::LeRead; +use rage_core::hash::joaat; +use rage_formats::drawable::Drawable; +use rage_formats::math::{self, Mat4}; +use rage_rpf::Rpf9; +use rage_rpf::vfs::Node as Node9; +use rayon::prelude::*; + +use crate::models::LoadedModel; +use crate::world::MapScene; + +const MAGIC: &[u8; 8] = b"ORG6MAP2"; + +/// Levels of detail: the models seen close, and the ones that stand for whole +/// neighbourhoods from afar. +const CLOSE: [u8; 2] = [0, 5]; +const FAR: u8 = 3; +/// The levels between, up to the far one. +const LEVELS: std::ops::RangeInclusive = 1..=FAR; +/// How well textures are read in views of many models. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Quality { + /// Seen from kilometres away. + Far, + Near, + /// From up close: normal and specular maps too. + Close, +} + +impl Quality { + fn side(self) -> u32 { + match self { + Self::Far => 256, + Self::Near => 512, + Self::Close => 1024, + } + } +} + +/// Something a map file places. +#[derive(Debug, Clone, PartialEq)] +struct Object { + /// Hash of the model's name. + model: u32, + position: [f32; 3], + rotation: [f32; 4], + scale: [f32; 2], +} + +impl Object { + fn transform(&self) -> Mat4 { + let [x, y, z, w] = self.rotation; + let [flat, high] = self.scale; + math::from_trs(self.position, [-x, -y, -z, w], [flat, flat, high]) + } +} + +/// An object that stands for others from afar: for those whose parent it is. +#[derive(Debug, Clone, PartialEq)] +struct Node { + /// The map file (the hash of its name) and the place in it. + key: (u32, u32), + parent: Option<(u32, u32)>, + level: u8, + /// Nearer than this, the others are shown. + reach: f32, + object: Object, +} + +/// What is kept of the map files. +#[derive(Debug, Default, PartialEq)] +pub struct Map { + /// Map files with the box around what they place. + files: Vec<(String, [f32; 3], [f32; 3])>, + /// The objects that stand for others from afar. + nodes: Vec, + /// Models in dictionaries, by the hash of their name: the dictionary and + /// the place in it. + children: HashMap, +} + +/// Files of the index, by the archive they are in. +fn by_archive(list: Vec<(String, String)>, keep: impl Fn(&str) -> bool) -> BTreeMap> { + let mut found: BTreeMap> = BTreeMap::new(); + for (_, vpath) in list.into_iter().filter(|(_, v)| keep(v)) { + if let Some((archive, file)) = vpath.rsplit_once(".rpf/") { + found.entry(format!("{archive}.rpf")).or_default().push(file.to_owned()); + } + } + found +} + +fn each_file( + game: &Path, + archives: &BTreeMap>, + work: impl Fn(&Rpf9, usize, String) + Sync, + done: &(dyn Fn() + Sync), +) { + archives.par_iter().for_each(|(archive, files)| { + let Ok((Node9::Rpf9Dir(rpf, _), _)) = rage_mods::resolve(game, archive, None) else { return }; + let Ok(entries) = rpf.entries() else { return }; + files.par_iter().for_each(|file| { + if let Some(i) = rpf.find(&entries, file) { + work(&rpf, i, format!("{archive}/{file}")); + } + done(); + }); + }); +} + +/// The part of the text between two others. +fn between<'a>(line: &'a str, start: &str, end: &str) -> Option<&'a str> { + line.strip_prefix(start)?.split(end).next() +} + +fn attributes(line: &str, names: [&str; N]) -> Option<[f32; N]> { + let mut out = [0.0; N]; + for (out, name) in out.iter_mut().zip(names) { + let at = line.find(&format!(" {name}=\""))? + name.len() + 3; + *out = line[at..].split('"').next()?.parse().ok()?; + } + Some(out) +} + +/// The hash a name in the XML stands for. +fn name_hash(name: &str) -> u32 { + let hash = name.strip_prefix("hash_").filter(|h| h.len() == 8).and_then(|h| u32::from_str_radix(h, 16).ok()); + hash.unwrap_or_else(|| joaat(name)) +} + +/// What a map file holds. +#[derive(Default)] +struct Placements { + /// Hash of the file's name. + name: u32, + /// The box around what it places. + extent: Option<[[f32; 3]; 2]>, + /// In the order of the file. + entries: Vec, +} + +/// A placed object with its place among the levels of detail. +struct Entry { + level: u8, + parent: Option<(u32, u32)>, + reach: f32, + object: Object, +} + +impl Placements { + fn has_close(&self) -> bool { + self.entries.iter().any(|e| CLOSE.contains(&e.level)) + } + + fn close(self) -> impl Iterator { + self.entries.into_iter().filter(|e| CLOSE.contains(&e.level)).map(|e| e.object) + } +} + +/// What a map file places. The XML is read by lines: there is a lot of it, +/// and it is our own. +fn read_map(xml: &str) -> Placements { + let mut map = Placements::default(); + let (mut lo, mut hi) = (None, None); + let mut now = Object { model: 0, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; + // The files with the objects that stand for this one's. + let mut parents: Vec = Vec::new(); + let (mut in_parents, mut in_entities, mut in_extensions) = (false, false, false); + let (mut reach, mut parent_index) = (0.0, -1.0); + let value = |line: &str| attributes(line, ["value"]).map(|[v]| v); + for line in xml.lines().map(str::trim) { + if in_extensions { + in_extensions = line != ""; + } else if in_entities { + if line == "" || line.starts_with("") { + in_extensions = true; + } else if line == "" { + in_entities = false; + } else if let Some(name) = between(line, "", "<") { + now.model = name_hash(name); + } else if line.starts_with("= 0.0 + && file >= 0.0 + { + entry.parent = parents.get(file as usize).map(|file| (*file, parent_index as u32)); + } + } else if line.starts_with("") || line.starts_with(""); + } else if line == "" { + in_parents = true; + } else if line == "" { + in_parents = false; + } else if let Some(name) = between(line, "", "<").filter(|_| in_parents) { + parents.push(name_hash(name)); + } else if let Some(name) = between(line, "", "<").filter(|_| map.name == 0) { + map.name = name_hash(name); + } else if line.starts_with(" Vec { + let list = system.u64_at(32).and_then(|p| usize::try_from(p.checked_sub(0x5000_0000)?).ok()); + let count = system.u16_at(40).unwrap_or(0); + let Some(list) = list else { return Vec::new() }; + (0..usize::from(count)).map_while(|i| system.u32_at(list.checked_add(i * 4)?)).collect() +} + +fn build(game: &Path, index: &rage_index::Index, progress: &(dyn Fn(usize, usize) + Sync)) -> Result { + let maps = by_archive(index.files_with_extensions(&[".#map"])?, |_| true); + let dictionaries = by_archive(index.files_with_extensions(&[".#dd"])?, |v| v.contains("/map/")); + let total = maps.values().chain(dictionaries.values()).map(Vec::len).sum(); + let count = AtomicUsize::new(0); + let done = || { + let n = count.fetch_add(1, Ordering::Relaxed) + 1; + if n.is_multiple_of(500) { + progress(n, total); + } + }; + let map = Mutex::new(Map::default()); + let lock = || map.lock().unwrap_or_else(|e| e.into_inner()); + each_file( + game, + &maps, + |rpf, i, vpath| { + let Ok(xml) = crate::metadata::from_rpf9(rpf, i) else { return }; + let placements = read_map(&xml.text); + let mut map = lock(); + if let Some([lo, hi]) = placements.extent.filter(|_| placements.has_close()) { + map.files.push((vpath, lo, hi)); + } + let name = placements.name; + let nodes = placements.entries.into_iter().enumerate().filter(|(_, e)| LEVELS.contains(&e.level)); + map.nodes.extend(nodes.map(|(k, e)| Node { + key: (name, k as u32), + parent: e.parent, + level: e.level, + reach: e.reach, + object: e.object, + })); + }, + &done, + ); + each_file( + game, + &dictionaries, + |rpf, i, vpath| { + let Ok(entries) = rpf.entries() else { return }; + let Some((system, _)) = rpf.resource_parts(&entries[i]) else { return }; + let Ok(start) = rpf.read_start(&entries[i], system as usize) else { return }; + let names = dictionary(&start); + let mut map = lock(); + for (k, name) in names.into_iter().enumerate() { + map.children.entry(name).or_insert_with(|| (vpath.clone(), k as u16)); + } + }, + &done, + ); + let mut map = map.into_inner().unwrap_or_else(|e| e.into_inner()); + map.files.sort_by(|a, b| a.0.cmp(&b.0)); + map.nodes.sort_by_key(|n| n.key); + Ok(map) +} + +fn cache_path(game: &Path) -> Option { + crate::paths::game_cache(game, "gta6-world", "bin") +} + +fn encode(map: &Map, stamp: i64) -> Vec { + let mut out = Vec::from(MAGIC); + out.extend(stamp.to_le_bytes()); + let text = |out: &mut Vec, s: &str| { + out.extend((s.len() as u32).to_le_bytes()); + out.extend(s.as_bytes()); + }; + let floats = |out: &mut Vec, v: &[f32]| v.iter().for_each(|f| out.extend(f.to_le_bytes())); + out.extend((map.files.len() as u32).to_le_bytes()); + for (path, lo, hi) in &map.files { + text(&mut out, path); + floats(&mut out, lo); + floats(&mut out, hi); + } + out.extend((map.nodes.len() as u32).to_le_bytes()); + for n in &map.nodes { + let parent = n.parent.unwrap_or((u32::MAX, u32::MAX)); + for v in [n.key.0, n.key.1, parent.0, parent.1, u32::from(n.level), n.object.model] { + out.extend(v.to_le_bytes()); + } + floats(&mut out, &[n.reach]); + floats(&mut out, &n.object.position); + floats(&mut out, &n.object.rotation); + floats(&mut out, &n.object.scale); + } + // Dictionaries once, then their models. + let mut by_path: BTreeMap<&str, Vec<(u32, u16)>> = BTreeMap::new(); + for (name, (path, k)) in &map.children { + by_path.entry(path).or_default().push((*name, *k)); + } + out.extend((by_path.len() as u32).to_le_bytes()); + for (path, models) in by_path { + text(&mut out, path); + out.extend((models.len() as u32).to_le_bytes()); + for (name, k) in models { + out.extend(name.to_le_bytes()); + out.extend(u32::from(k).to_le_bytes()); + } + } + out +} + +fn decode(data: &[u8], stamp: i64) -> Option { + let rest = data.strip_prefix(MAGIC)?.strip_prefix(&stamp.to_le_bytes())?; + fn floats(number: &mut impl FnMut() -> Option) -> Option<[f32; N]> { + let mut out = [0.0; N]; + for f in &mut out { + *f = f32::from_bits(number()?); + } + Some(out) + } + let mut reader = Reader { data: rest, at: 0 }; + let mut map = Map::default(); + for _ in 0..reader.number()? { + let path = reader.text()?; + let (lo, hi) = (floats(&mut || reader.number())?, floats(&mut || reader.number())?); + map.files.push((path, lo, hi)); + } + for _ in 0..reader.number()? { + let mut next = || reader.number(); + let (key, parent) = ((next()?, next()?), (next()?, next()?)); + let (level, model) = (next()? as u8, next()?); + let [reach] = floats(&mut next)?; + let object = + Object { model, position: floats(&mut next)?, rotation: floats(&mut next)?, scale: floats(&mut next)? }; + map.nodes.push(Node { key, parent: (parent.0 != u32::MAX).then_some(parent), level, reach, object }); + } + for _ in 0..reader.number()? { + let path = reader.text()?; + for _ in 0..reader.number()? { + let (name, k) = (reader.number()?, reader.number()?); + map.children.insert(name, (path.clone(), k as u16)); + } + } + Some(map) +} + +struct Reader<'a> { + data: &'a [u8], + at: usize, +} + +impl Reader<'_> { + fn number(&mut self) -> Option { + let v = self.data.u32_at(self.at)?; + self.at += 4; + Some(v) + } + + fn text(&mut self) -> Option { + let len = self.number()? as usize; + let bytes = self.data.get(self.at..self.at.checked_add(len)?)?; + self.at += len; + String::from_utf8(bytes.to_vec()).ok() + } +} + +/// The game's map: kept, or read from its map files. `progress` gets the files +/// read and their number. +pub fn load(game: &Path, progress: &(dyn Fn(usize, usize) + Sync)) -> Result> { + static LOADED: Mutex)>> = Mutex::new(None); + let index = open_index(game)?; + let stamp = index.changed_at()?.unwrap_or(0); + let mut loaded = LOADED.lock().unwrap_or_else(|e| e.into_inner()); + if let Some((of, at, map)) = &*loaded + && of == game + && *at == stamp + { + return Ok(Arc::clone(map)); + } + let path = cache_path(game).context("no cache directory")?; + let map = match std::fs::read(&path).ok().and_then(|data| decode(&data, stamp)) { + Some(map) => map, + None => { + let map = rage_rpf::in_own_threads(|| build(game, &index_of(game)?, progress))?; + let partial = path.with_extension("bin.part"); + // The cache only saves time. + let _ = std::fs::write(&partial, encode(&map, stamp)).and_then(|()| std::fs::rename(&partial, &path)); + map + } + }; + let map = Arc::new(map); + *loaded = Some((game.to_path_buf(), stamp, Arc::clone(&map))); + Ok(map) +} + +fn index_of(game: &Path) -> Result { + let path = crate::index_path(game).filter(|p| p.exists()).context("the search index is not built yet")?; + Ok(rage_index::Index::open(&path)?) +} + +fn open_index(game: &Path) -> Result { + let index = index_of(game)?; + anyhow::ensure!(index.is_complete()?, "the search index is still being built"); + Ok(index) +} + +/// Where a model is. +#[derive(Debug, Clone)] +enum Source { + File(String), + Child(String, u16), +} + +/// The files of models, by the hash of their name. +fn model_files(game: &Path) -> Result> { + let list = open_index(game)?.files_with_extensions(&[".#dr", ".#ft"])?; + let mut found = HashMap::with_capacity(list.len()); + for (name, vpath) in list { + if let Some((stem, _)) = name.rsplit_once('.') { + found.entry(joaat(stem)).or_insert(vpath); + } + } + Ok(found) +} + +/// A loaded model: the hash of its name, its name, and itself. +pub type Loaded = (u32, String, LoadedModel); + +/// Where the game's models are. +struct Models<'a> { + game: &'a Path, + files: &'a HashMap, + map: &'a Map, +} + +impl Models<'_> { + fn source(&self, model: u32) -> Option { + let file = self.files.get(&model).map(|file| Source::File(file.clone())); + file.or_else(|| self.map.children.get(&model).map(|(file, k)| Source::Child(file.clone(), *k))) + } + + /// Loads models; those that cannot be read are left out. + fn load(&self, wanted: &[u32], quality: Quality, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { + // Archives are opened once: that takes longer than reading a model. + let mut archives: BTreeMap> = BTreeMap::new(); + for &model in wanted { + let Some(source) = self.source(model) else { continue }; + let (Source::File(vpath) | Source::Child(vpath, _)) = &source; + if let Some((archive, file)) = vpath.rsplit_once(".rpf/") { + archives.entry(format!("{archive}.rpf")).or_default().push((file.to_owned(), model, source)); + } + } + let total = archives.values().map(Vec::len).sum(); + let count = &AtomicUsize::new(0); + progress(0, total); + archives + .into_par_iter() + .flat_map(|(archive, files)| { + let opened = match rage_mods::resolve(self.game, &archive, None) { + Ok((Node9::Rpf9Dir(rpf, _), _)) => rpf.entries().ok().map(|entries| (rpf, entries)), + _ => None, + }; + files.into_par_iter().filter_map(move |(file, model, source)| { + let loaded = opened.as_ref().and_then(|(rpf, entries)| { + let i = rpf.find(entries, &file)?; + crate::progress::quietly(|| load_model(self.game, rpf, i, &source, quality)).ok() + }); + progress(count.fetch_add(1, Ordering::Relaxed) + 1, total); + loaded.map(|(name, loaded)| (model, name, loaded)) + }) + }) + .collect() + } +} + +/// Puts objects together: every model once, with all its places. +fn scene( + game: &Path, + map: &Map, + objects: &[Object], + quality: Quality, + progress: &(dyn Fn(usize, usize) + Sync), +) -> Result { + let files = model_files(game)?; + let models = Models { game, files: &files, map }; + let mut places: HashMap> = HashMap::new(); + for o in objects { + places.entry(o.model).or_default().push(o.transform()); + } + let (wanted, unknown): (Vec, Vec) = places.keys().partition(|m| models.source(**m).is_some()); + let mut missing: Vec<(String, usize)> = + unknown.into_iter().map(|m| (rage_formats::names::value(m), places[&m].len())).collect(); + missing.sort_by(|a, b| b.1.cmp(&a.1).then(a.0.cmp(&b.0))); + let loaded = models.load(&wanted, quality, progress); + let models = loaded + .into_iter() + .map(|(model, name, loaded)| (name, loaded, places.remove(&model).unwrap_or_default())) + .collect(); + Ok(MapScene { models, objects: objects.len(), missing }) +} + +fn load_model(game: &Path, rpf: &Rpf9, i: usize, source: &Source, quality: Quality) -> Result<(String, LoadedModel)> { + let (Source::File(vpath) | Source::Child(vpath, _)) = source; + let mut drawables: Vec<(String, Drawable)> = crate::gta6_models::load(rpf, i)?; + if let Source::Child(_, k) = source { + let k = usize::from(*k); + anyhow::ensure!(k < drawables.len(), "no such model in the dictionary"); + drawables = vec![drawables.swap_remove(k)]; + } + let name = match source { + Source::File(_) => vpath.rsplit('/').next().unwrap_or(vpath).to_owned(), + Source::Child(..) => drawables[0].0.clone(), + }; + let textures = crate::gta6_textures::shared_for(game, &drawables, quality.side(), quality == Quality::Close); + let mut model = LoadedModel::from_drawables(drawables); + model.set_shared(textures); + Ok((name.trim_end_matches(".#dr").trim_end_matches(".#ft").to_owned(), model)) +} + +/// The whole map, as it looks from afar. +pub fn overview(game: &Path, progress: &Progress) -> Result { + let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; + let far: Vec = map.nodes.iter().filter(|n| n.level == FAR).map(|n| n.object.clone()).collect(); + anyhow::ensure!(!far.is_empty(), "the map files of this game have no distant view"); + scene(game, &map, &far, Quality::Far, &|done, total| progress("Loading the map's models", done, total)) +} + +/// Gets what is being done, how much of it is done, and how much there is. +pub type Progress<'a> = dyn Fn(&str, usize, usize) + Sync + 'a; + +/// How far around a map file's objects its surroundings are shown (metres). +pub const AROUND: f32 = 120.0; + +/// A map file, with what the others place around it. +pub fn place(game: &Path, vpath: &str, around: f32, progress: &Progress) -> Result { + let own = read_map(&crate::metadata::load(game, None, vpath)?.text); + let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; + let (extent, has_close) = (own.extent, own.has_close()); + let mut objects: Vec = + if has_close { own.close().collect() } else { own.entries.into_iter().map(|e| e.object).collect() }; + if let Some([lo, hi]) = extent.filter(|_| has_close) { + let middle = [(lo[0] + hi[0]) / 2.0, (lo[1] + hi[1]) / 2.0]; + let near = |p: &[f32; 3]| (0..2).all(|k| (p[k] - middle[k]).abs() <= around); + let others = map.files.iter().filter(|(path, lo, hi)| { + path != vpath && (0..2).all(|k| lo[k] <= middle[k] + around && hi[k] >= middle[k] - around) + }); + let others = by_archive(others.map(|(path, ..)| (String::new(), path.clone())).collect(), |_| true); + let found = Mutex::new(Vec::new()); + each_file( + game, + &others, + |rpf, i, _| { + let Ok(xml) = crate::metadata::from_rpf9(rpf, i) else { return }; + let near = read_map(&xml.text).close().filter(|o| near(&o.position)); + found.lock().unwrap_or_else(|e| e.into_inner()).extend(near); + }, + &|| {}, + ); + objects.extend(found.into_inner().unwrap_or_else(|e| e.into_inner())); + } + scene(game, &map, &objects, Quality::Near, &|done, total| progress("Loading the map's models", done, total)) +} + +/// How near the camera a map file has to be for its close objects (metres). +const NEAR: f32 = 200.0; +/// How near objects have to be that stand for others but have none above them. +const ALONE: [f32; 4] = [0.0, 800.0, 4000.0, f32::MAX]; + +/// The whole map in the detail that fits where the camera is. +pub struct Lod { + game: PathBuf, + map: Arc, + files: HashMap, + /// Nodes by their key. + by_key: HashMap<(u32, u32), u32>, + /// What each node stands for, among the nodes. + children: Vec>, + roots: Vec, +} + +/// The close objects of a map file, with the node they are part of. +#[derive(Default)] +pub struct Close { + objects: Vec<(Option, Object)>, +} + +/// What to draw: models with their places, and what is missing for more +/// detail, the most wanted first. +#[derive(Default)] +pub struct Cut { + pub draw: HashMap>, + pub wanted: Vec, +} + +fn distance(a: &[f32; 3], b: &[f32; 3]) -> f32 { + (0..3).map(|k| (a[k] - b[k]).powi(2)).sum::().sqrt() +} + +/// How far a point is from a box. +fn distance_to_box(p: &[f32; 3], lo: &[f32; 3], hi: &[f32; 3]) -> f32 { + distance(p, &std::array::from_fn(|k| p[k].clamp(lo[k], hi[k].max(lo[k])))) +} + +impl Lod { + pub fn open(game: &Path, progress: &Progress) -> Result { + let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; + Ok(Self::new(game, map, model_files(game)?)) + } + + fn new(game: &Path, map: Arc, files: HashMap) -> Self { + let by_key: HashMap<(u32, u32), u32> = map.nodes.iter().enumerate().map(|(i, n)| (n.key, i as u32)).collect(); + let mut children = vec![Vec::new(); map.nodes.len()]; + let mut roots = Vec::new(); + for (i, node) in map.nodes.iter().enumerate() { + // Only of a higher level, so there are no circles. + let parent = node.parent.and_then(|key| by_key.get(&key).copied()); + match parent.filter(|p| map.nodes[*p as usize].level > node.level) { + Some(p) => children[p as usize].push(i as u32), + None => roots.push(i as u32), + } + } + Self { game: game.to_owned(), map, files, by_key, children, roots } + } + + /// The models of the farthest level. + pub fn far(&self) -> Vec { + let far = self.map.nodes.iter().filter(|n| n.level == FAR).map(|n| n.object.model); + far.collect::>().into_iter().collect() + } + + /// Whether the game has this model. + pub fn has_model(&self, model: u32) -> bool { + self.files.contains_key(&model) || self.map.children.contains_key(&model) + } + + /// Loads models. + pub fn load(&self, models: &[u32], quality: Quality, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { + let of = Models { game: &self.game, files: &self.files, map: &self.map }; + of.load(models, quality, progress) + } + + /// The map files with close objects near a place. + pub fn near(&self, eye: &[f32; 3], range: f32) -> HashSet { + let near = |(_, lo, hi): &&(String, [f32; 3], [f32; 3])| distance_to_box(eye, lo, hi) < NEAR * range; + (0..).zip(&self.map.files).filter(|(_, f)| near(f)).map(|(i, _)| i).collect() + } + + /// Reads the close objects of map files. + pub fn read(&self, files: &[u32]) -> Vec<(u32, Close)> { + let number: HashMap<&str, u32> = files.iter().map(|i| (self.map.files[*i as usize].0.as_str(), *i)).collect(); + let by_archive = by_archive(number.keys().map(|p| (String::new(), (*p).to_owned())).collect(), |_| true); + let found = Mutex::new(Vec::new()); + each_file( + &self.game, + &by_archive, + |rpf, i, vpath| { + let Some(&number) = number.get(vpath.as_str()) else { return }; + let entries = crate::metadata::from_rpf9(rpf, i).map(|x| read_map(&x.text).entries).unwrap_or_default(); + let close = entries.into_iter().filter(|e| CLOSE.contains(&e.level)); + let node = |e: &Entry| e.parent.and_then(|key| self.by_key.get(&key).copied()); + let objects = close.map(|e| (node(&e), e.object)).collect(); + found.lock().unwrap_or_else(|e| e.into_inner()).push((number, Close { objects })); + }, + &|| {}, + ); + found.into_inner().unwrap_or_else(|e| e.into_inner()) + } + + /// What to draw from a place, `range` times as far in detail as the game + /// does, of the models there are, with the close + /// objects read so far. An object gives way to those it stands for when + /// all of them are there. + pub fn cut<'a>( + &self, + eye: &[f32; 3], + range: f32, + loaded: &dyn Fn(u32) -> bool, + unreadable: &dyn Fn(u32) -> bool, + close: impl Iterator, + ) -> Cut { + let mut of_node: HashMap> = HashMap::new(); + let mut cut = Choice { + lod: self, + eye, + range, + loaded, + unreadable, + close: HashMap::new(), + draw: Vec::new(), + wanted: HashMap::new(), + }; + for (node, object) in close.flat_map(|c| &c.objects) { + match node { + Some(node) => of_node.entry(*node).or_default().push(object), + None if distance(eye, &object.position) < NEAR * range && cut.take(object) => cut.draw.push(object), + None => {} + } + } + cut.close = of_node; + for &root in &self.roots { + let node = &self.map.nodes[root as usize]; + if distance(eye, &node.object.position) < ALONE[usize::from(node.level.min(FAR))] { + cut.visit(root); + } + } + let mut wanted: Vec<(u32, f32)> = cut.wanted.into_iter().collect(); + wanted.sort_by(|a, b| a.1.total_cmp(&b.1)); + let mut draw: HashMap> = HashMap::new(); + for object in cut.draw { + draw.entry(object.model).or_default().push(object.transform()); + } + Cut { draw, wanted: wanted.into_iter().map(|(m, _)| m).collect() } + } +} + +/// A cut in the making. +struct Choice<'a> { + lod: &'a Lod, + eye: &'a [f32; 3], + range: f32, + loaded: &'a dyn Fn(u32) -> bool, + unreadable: &'a dyn Fn(u32) -> bool, + close: HashMap>, + draw: Vec<&'a Object>, + /// Models to load, with how near they are. + wanted: HashMap, +} + +impl<'a> Choice<'a> { + fn expects(&self, model: u32) -> bool { + self.lod.has_model(model) && !(self.unreadable)(model) + } + + /// Whether an object's model is loaded; otherwise it is wanted. One the + /// game does not have does not count. + fn take(&mut self, object: &Object) -> bool { + if (self.loaded)(object.model) { + return true; + } + if self.expects(object.model) { + let far = distance(self.eye, &object.position); + let known = self.wanted.entry(object.model).or_insert(far); + *known = known.min(far); + } + false + } + + /// Draws a node or what it stands for; gives whether something stands + /// where it is. + fn visit(&mut self, node: u32) -> bool { + let lod = self.lod; + let (n, children) = (&lod.map.nodes[node as usize], &lod.children[node as usize]); + if distance(self.eye, &n.object.position) < n.reach * self.range { + let before = self.draw.len(); + let mut all = true; + let mut any = false; + for child in children { + any = true; + all &= self.visit(*child); + } + for object in self.close.remove(&node).unwrap_or_default() { + any = true; + if self.take(object) { + self.draw.push(object); + } else { + all &= !self.expects(object.model); + } + } + if any && all { + return true; + } + self.draw.truncate(before); + } + if self.take(&n.object) { + self.draw.push(&n.object); + return true; + } + !self.expects(n.object.model) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + const XML: &str = r#" + hash_00000077 + + hash_00000099 + + + + + + + + Prop_A + + + + + + + + + + + + + hash_0000ABCD + + + + + + + + +"#; + + #[test] + fn map_files_are_read() { + let map = read_map(XML); + assert_eq!((map.name, map.extent), (0x77, Some([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]))); + let [a, b] = &map.entries[..] else { panic!("two entries") }; + assert_eq!((a.level, a.object.model, a.parent), (5, joaat("prop_a"), None)); + assert_eq!(a.object.scale, [2.0, 3.0]); + assert_eq!(a.object.transform()[12..15], [10.0, 20.0, 30.0]); + assert_eq!((b.level, b.object.model, b.parent, b.reach), (2, 0xABCD, Some((0x99, 4)), 60.0)); + } + + fn node(key: (u32, u32), parent: Option<(u32, u32)>, level: u8, model: u32) -> Node { + let object = Object { model, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; + Node { key, parent, level, reach: 100.0, object } + } + + #[test] + fn the_cache_reads_back() { + let map = Map { + files: vec![("a.rpf/b.#map".into(), [1.0; 3], [2.0; 3])], + nodes: vec![node((1, 0), None, 3, 7), node((2, 0), Some((1, 0)), 2, 8)], + children: HashMap::from([(7, ("c.rpf/d.#dd".to_owned(), 3))]), + }; + let data = encode(&map, 5); + assert_eq!(decode(&data, 5).unwrap(), map); + assert!(decode(&data, 6).is_none()); + for n in 0..data.len() { + assert!(decode(&data[..n], 5).is_none()); + } + } + + #[test] + fn detail_follows_the_camera() { + let map = Map { + files: Vec::new(), + nodes: vec![ + node((1, 0), None, 3, 10), + node((2, 0), Some((1, 0)), 2, 20), + node((2, 1), Some((1, 0)), 2, 21), + ], + children: HashMap::from([10, 20, 21, 30].map(|m| (m, (String::new(), 0)))), + }; + let lod = Lod::new(Path::new(""), Arc::new(map), HashMap::new()); + let object = Object { model: 30, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; + let close = Close { objects: vec![(Some(1), object)] }; + let cut = |at: f32, loaded: &[u32]| { + let cut = lod.cut(&[at, 0.0, 0.0], 1.0, &|m| loaded.contains(&m), &|_| false, std::iter::once(&close)); + let mut draw: Vec = cut.draw.into_keys().collect(); + draw.sort_unstable(); + (draw, cut.wanted.len()) + }; + // Afar, the far one; close, what it stands for once all of it is there. + assert_eq!(cut(500.0, &[10, 20, 21, 30]), (vec![10], 0)); + assert_eq!(cut(50.0, &[10, 20]), (vec![10], 2)); + assert_eq!(cut(50.0, &[10, 20, 21]), (vec![20, 21], 1)); + assert_eq!(cut(50.0, &[10, 20, 21, 30]), (vec![21, 30], 0)); + } +} diff --git a/crates/openrage-app/src/lib.rs b/crates/openrage-app/src/lib.rs index d670f98..4eac124 100644 --- a/crates/openrage-app/src/lib.rs +++ b/crates/openrage-app/src/lib.rs @@ -14,6 +14,9 @@ pub mod extract; pub mod gta4; pub mod gta4_cutscene; pub mod gta4_effects; +pub mod gta6_models; +pub mod gta6_textures; +pub mod gta6_world; pub mod install; pub mod journal; pub mod licenses; @@ -33,6 +36,7 @@ pub mod rdr2; pub mod rdr2_install; pub mod render; pub mod repack; +pub mod rpf9; pub mod setup; pub mod suggest; pub mod texttable; diff --git a/crates/openrage-app/src/media.rs b/crates/openrage-app/src/media.rs index 9a74364..632805f 100644 --- a/crates/openrage-app/src/media.rs +++ b/crates/openrage-app/src/media.rs @@ -1,4 +1,4 @@ -//! Facts about Scaleform movies (`.gfx`) and Bink videos (`.bik`) for display. +//! Facts about Scaleform movies (`.gfx`) and Bink videos (`.bik`, `.bk2`) for display. use anyhow::Result; @@ -15,18 +15,26 @@ fn short_list(names: &[String]) -> String { } /// Facts about a media file, as (label, value) rows. -pub fn rows(name: &str, data: &[u8]) -> Result> { +pub fn rows(data: &[u8]) -> Result> { use rage_formats::media; - let lower = name.to_ascii_lowercase(); - Ok(if lower.ends_with(".bik") { - let b = media::bink(data)?; - vec![ - ("Format".into(), format!("Bink video ({})", b.signature)), - ("Resolution".into(), format!("{} Γ— {}", b.width, b.height)), - ("Frames".into(), format!("{} at {:.2} fps", b.frames, b.fps)), - ("Length".into(), format!("{:.1} s", b.duration())), - ("Audio tracks".into(), b.audio_tracks.to_string()), - ] + Ok(if rage_formats::bink::is_bink(data) { + let v = rage_formats::bink::read(data)?; + let mut rows = vec![ + ("Format".into(), format!("Bink {} video, revision {}", v.version, v.revision as char)), + ( + "Resolution".into(), + format!("{} Γ— {}{}", v.width, v.height, if v.has_alpha() { ", with alpha" } else { "" }), + ), + ("Frames".into(), format!("{} at {:.2} fps", v.frames(), v.frames_per_second())), + ("Length".into(), format!("{:.1} s", v.duration())), + ]; + let tracks: Vec = v + .tracks + .iter() + .map(|t| format!("{} Hz, {}", t.sample_rate, if t.channels == 2 { "stereo" } else { "mono" })) + .collect(); + rows.push(("Sound".into(), if tracks.is_empty() { "none".into() } else { tracks.join("; ") })); + rows } else { let g = media::gfx(data)?; vec![ diff --git a/crates/openrage-app/src/metadata.rs b/crates/openrage-app/src/metadata.rs index ef10faa..4ae297a 100644 --- a/crates/openrage-app/src/metadata.rs +++ b/crates/openrage-app/src/metadata.rs @@ -12,7 +12,10 @@ use rage_resource::Resource; use rage_rpf::vfs::Node; /// Extensions of files that hold metadata. -pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso"]; +pub const EXTENSIONS: &[&str] = &[ + "ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt", "#map", "#typ", "#ldb", "#ldbmt", "#as", "#cov", + "#kit", "#fc", "#lfc", +]; pub fn is_metadata(name: &str) -> bool { let lower = name.to_ascii_lowercase(); @@ -72,6 +75,11 @@ fn from_bytes_for(data: &[u8], rdr2: bool) -> Result { } return from_resource(&res); } + if rage_formats::psin::is_psin(data) { + let psin = rage_formats::psin::parse(data)?; + let (text, errors) = psin.to_xml(); + return Ok(Xml { text, encoding: Encoding::Pso, root: Some(psin.root_type()), errors }); + } if rage_formats::pso::is_pso(data) { let pso = if rdr2 { rage_formats::pso::parse_rdr2(data)? } else { rage_formats::pso::parse(data)? }; let (text, errors) = pso.to_xml(); @@ -109,6 +117,16 @@ pub fn from_rpf8(rpf: &rage_rpf::Rpf8, i: usize) -> Result { from_bytes_rdr2(&rpf.read(entry)?) } +/// Converts a metadata file in a GTA VI archive (resource or PSO) to XML. +pub fn from_rpf9(rpf: &rage_rpf::Rpf9, i: usize) -> Result { + match crate::rpf9::resource(rpf, i) { + Ok((system, graphics)) if rage_formats::meta::is_gta6(&system) => { + from_resource(&Resource { version: rage_formats::meta::VERSION_RDR2, system, graphics }) + } + _ => from_bytes(&rpf.read_at(i)?), + } +} + /// Reads a metadata file (mods included) and converts it to XML. pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result { let (node, _) = rage_mods::resolve(game_dir, vpath, keys)?; @@ -116,6 +134,7 @@ pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => std::fs::read(p)?, Node::Rpf8File(rpf, i) => return from_rpf8(&rpf, i), + Node::Rpf9File(rpf, i) => return from_rpf9(&rpf, i), _ => bail!("{vpath} is not a file"), }; from_bytes(&data) diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index 23503de..2cdcc7d 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -38,6 +38,8 @@ pub struct LoadedModel { pub parts: Vec, /// Texture dictionaries found next to the model (`.ytd`, `vehshare.ytd`). pub external: Vec<(String, TextureDictionary)>, + /// Textures shared with other models (GTA VI). + shared: Vec>, /// Materials: shaders with the same name across all drawables. pub materials: Vec, /// The skeleton skinned meshes are bound to (for peds: from the `.yft` @@ -111,6 +113,7 @@ impl LoadedModel { parts, external: Vec::new(), materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton: None, expressions: Vec::new(), @@ -123,7 +126,24 @@ impl LoadedModel { /// Finds a texture by name: embedded in the drawable first, then next to the model. pub fn texture<'a>(&'a self, drawable: &'a Drawable, name: &str) -> Option<&'a Texture> { let find = |d: &'a TextureDictionary| d.textures.iter().find(|t| t.name.eq_ignore_ascii_case(name)); - drawable.textures.as_ref().and_then(find).or_else(|| self.external.iter().find_map(|(_, d)| find(d))) + let own = drawable.textures.as_ref().and_then(find).or_else(|| self.external.iter().find_map(|(_, d)| find(d))); + own.or_else(|| self.shared_texture(name).map(|t| &**t)) + } + + /// The texture of this name that is shared with other models. + pub(crate) fn shared_texture(&self, name: &str) -> Option<&Arc> { + self.shared.iter().find(|t| t.name.eq_ignore_ascii_case(name)) + } + + /// Gives the model textures it shares with others. + pub fn set_shared(&mut self, textures: Vec>) { + self.shared = textures; + self.collect_materials(); + } + + /// Lets go of the shared textures: what shows the model has them. + pub fn forget_shared(&mut self) { + self.shared = Vec::new(); } /// Dresses a GTA IV ped: for each (component, drawable, texture) β€” a @@ -533,6 +553,12 @@ pub fn is_model(name: &str) -> bool { || n.ends_with(".wft") || n.ends_with(".wbn") || n.ends_with(".wbd") + // GTA VI: drawables, fragments and drawable dictionaries. + || n.ends_with(".#dr") + || n.ends_with(".#ft") + || n.ends_with(".#dd") + || n.ends_with(".#bn") + || n.ends_with(".#nv") || rage_formats::paths::is_path_file(&n) } @@ -675,6 +701,38 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu if let Node::Gta4File(archive, id) = node { return load_gta4(&archive, id); } + if let Node::Rpf9File(rpf, i) = node { + if vpath.to_ascii_lowercase().ends_with(".#bn") { + let (system, _) = crate::rpf9::resource(&rpf, i)?; + let (collision, stats) = rage_formats::bn6::parse(&system)?; + for material in stats.materials { + let label = format!("Material {material:04x}"); + let color = material_color(&label, material as u8); + let id = rage_formats::ybn::MATERIAL_BASE + u32::from(material); + rage_formats::shaders::register(id, label, color); + } + return Ok(LoadedModel::from_drawables(vec![("collision".to_owned(), collision)])); + } + if vpath.to_ascii_lowercase().ends_with(".#nv") { + let (mesh, _) = rage_formats::paths::parse_nv6(crate::rpf9::resource(&rpf, i)?.0)?; + return Ok(LoadedModel::from_drawables(vec![("nav mesh".to_owned(), mesh)])); + } + let mut drawables = crate::gta6_models::load(&rpf, i)?; + let textures = crate::gta6_textures::for_drawables(game_dir, &drawables); + let name = vpath.rsplit('/').next().unwrap_or(vpath); + // A dictionary's drawables have skeletons of their own. + let worn_on = crate::gta6_models::bind(game_dir, name, &mut drawables); + let skeleton = worn_on.or_else(|| match drawables.as_slice() { + [(_, d)] => d.skeleton.clone(), + _ => None, + }); + let mut model = LoadedModel::from_drawables(drawables); + model.skeleton = skeleton; + if let Some(textures) = textures { + model.add_textures("texture pools".to_owned(), textures); + } + return Ok(model); + } let Node::ArchiveFile(rpf, id) = node else { bail!("{vpath} is not a file inside an archive") }; let name = rpf.entry(id).name.clone(); let res = rpf.read_resource(id)?; @@ -784,6 +842,7 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -869,6 +928,7 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -1345,6 +1405,7 @@ fn load_gta4(archive: &Arc, id: rage_rpf::Gta4EntryId) -> parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -1408,6 +1469,7 @@ fn gta4_player(archive: &rage_rpf::Gta4Archive, skeleton: drawable::Skeleton) -> parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton: Some(skeleton), expressions: Vec::new(), @@ -1448,6 +1510,7 @@ pub fn load_gta4_members(game: &Path, vpath: &str, wanted: &[(String, u32)]) -> parts: vec![part], external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton: d.skeleton.clone(), expressions: Vec::new(), @@ -1570,6 +1633,7 @@ fn load_rdr2(rpf: &Arc, i: usize) -> Result { parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -1732,6 +1796,7 @@ fn load_rdr2_ped_inner(game: &Path, ped: &str, outfit: usize) -> Result bail!("{vpath}: not found"), }, Node::Gta4File(a, id) => a.read(id)?, - Node::Dir(_) | Node::ArchiveDir(..) | Node::Rpf8Dir(..) | Node::Gta4Dir(..) => { + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, + Node::Dir(_) | Node::ArchiveDir(..) | Node::Rpf8Dir(..) | Node::Gta4Dir(..) | Node::Rpf9Dir(..) => { bail!("{vpath} is a folder") } _ => bail!("{vpath}: not supported"), @@ -223,7 +224,26 @@ impl GameFiles for GameDir { out.push(DirEntry { name: e.name.clone(), is_dir: e.is_dir(), size: e.size() }); } } - Node::PlainFile(_) | Node::ArchiveFile(..) | Node::Rpf8File(..) | Node::Gta4File(..) => { + Node::Rpf9Dir(rpf, dir) => { + let entries = rpf.entries()?; + let (dirs, files) = rpf.list_dir(&entries, &dir); + for d in dirs { + out.push(DirEntry { name: d, is_dir: true, size: 0 }); + } + for i in files { + let name = rpf.entry_name(&entries[i]); + out.push(DirEntry { + name: name.rsplit('/').next().unwrap_or(&name).to_owned(), + is_dir: false, + size: entries[i].size, + }); + } + } + Node::PlainFile(_) + | Node::ArchiveFile(..) + | Node::Rpf8File(..) + | Node::Gta4File(..) + | Node::Rpf9File(..) => { bail!("{vpath} is a file") } _ => bail!("{vpath}: not supported"), diff --git a/crates/openrage-app/src/render.rs b/crates/openrage-app/src/render.rs index 3b74717..f74ee84 100644 --- a/crates/openrage-app/src/render.rs +++ b/crates/openrage-app/src/render.rs @@ -4,9 +4,12 @@ //! with alpha cut-out, and simple headlight shading. Fast enough for //! interactive previews of game models (tens of thousands of triangles). +use rage_formats::drawable::param; use std::collections::HashMap; +use std::sync::{Arc, LazyLock, Mutex, OnceLock, Weak}; use rage_formats::math; +use rage_formats::texture::Texture; use crate::models::{LoadedModel, Look}; @@ -24,45 +27,112 @@ impl Default for View { } } -struct Image { +/// A picture on a model, shared by those with the same one. +pub struct Image { w: usize, h: usize, - rgba: Vec, + /// Decoded on first use. + rgba: OnceLock>>, + /// As the game has it; let go once it is on the graphics card. + source: Mutex>>, } impl Image { - fn sample(&self, u: f32, v: f32) -> [u8; 4] { + fn decoded(w: usize, h: usize, rgba: Vec) -> Self { + Self { w, h, rgba: OnceLock::from(Some(rgba)), source: Mutex::new(None) } + } + + /// Width and height. + pub fn size(&self) -> (usize, usize) { + (self.w, self.h) + } + + /// RGBA pixels. + pub fn rgba(&self) -> Option<&[u8]> { + let decode = || self.source().and_then(|t| t.to_rgba()); + self.rgba.get_or_init(decode).as_deref() + } + + /// The texture as the game has it, if it is kept. + pub fn source(&self) -> Option> { + self.source.lock().unwrap_or_else(|e| e.into_inner()).clone() + } + + /// Lets go of it: it is elsewhere now. + pub fn release(&self) { + *self.source.lock().unwrap_or_else(|e| e.into_inner()) = None; + } + + /// The picture of a texture that several models share. + fn shared(texture: &Arc) -> Arc { + type Known = HashMap, Weak)>; + static KNOWN: LazyLock> = LazyLock::new(Default::default); + let mut known = KNOWN.lock().unwrap_or_else(|e| e.into_inner()); + let key = Arc::as_ptr(texture) as usize; + if let Some((of, image)) = known.get(&key) + && of.upgrade().is_some_and(|of| Arc::ptr_eq(&of, texture)) + && let Some(image) = image.upgrade() + { + return image; + } + let image = Arc::new(Image { + w: texture.width.max(1) as usize, + h: texture.height.max(1) as usize, + rgba: OnceLock::new(), + source: Mutex::new(Some(Arc::clone(texture))), + }); + if known.len().is_power_of_two() { + known.retain(|_, (_, image)| image.strong_count() > 0); + } + known.insert(key, (Arc::downgrade(texture), Arc::downgrade(&image))); + image + } + + fn sample(&self, rgba: &[u8], u: f32, v: f32) -> [u8; 4] { let x = ((u - u.floor()) * self.w as f32) as usize % self.w; let y = ((v - v.floor()) * self.h as f32) as usize % self.h; let i = (y * self.w + x) * 4; - [self.rgba[i], self.rgba[i + 1], self.rgba[i + 2], self.rgba[i + 3]] + [rgba[i], rgba[i + 1], rgba[i + 2], rgba[i + 3]] } } -/// Decoded textures, shared between frames. +/// The textures of a model, ready to be drawn. pub struct Materials { - images: Vec, - /// Indices into `images` per drawable and shader: base colour and the - /// overlay drawn over it on the second UV set (liveries, signs). - per_shader: Vec, Option)>>, + images: Vec>, + /// Indices into `images` per drawable and shader. + per_shader: Vec>, +} + +/// A shader's textures: indices into [`Materials::images`]. +#[derive(Clone, Copy, Default)] +struct Slots { + base: Option, + /// Drawn over the base on the second UV set (liveries, signs). + overlay: Option, + normal: Option, + specular: Option, } impl Materials { - /// Decodes the base and overlay textures of every shader of every drawable. + /// Decodes the textures of every shader of every drawable. pub fn new(model: &LoadedModel) -> Self { let mut by_name: HashMap> = HashMap::new(); - let mut images: Vec = Vec::new(); + let mut images: Vec> = Vec::new(); // `opaque`: the shader's alpha channel holds other data (skin shaders). let mut decode = |d: &rage_formats::drawable::Drawable, name: Option<&str>, opaque: bool| { let name = name?; let key = format!("{}{}", name.to_ascii_lowercase(), if opaque { "#opaque" } else { "" }); *by_name.entry(key).or_insert_with(|| { let t = model.texture(d, name)?; + if let Some(shared) = model.shared_texture(name).filter(|s| !opaque && std::ptr::eq(&***s, t)) { + images.push(Image::shared(shared)); + return Some(images.len() - 1); + } let mut rgba = t.to_rgba()?; if opaque { rgba.iter_mut().skip(3).step_by(4).for_each(|a| *a = 255); } - images.push(Image { w: t.width.max(1) as usize, h: t.height.max(1) as usize, rgba }); + images.push(Arc::new(Image::decoded(t.width.max(1) as usize, t.height.max(1) as usize, rgba))); Some(images.len() - 1) }) }; @@ -74,7 +144,12 @@ impl Materials { .iter() .map(|s| { let opaque = rage_formats::shaders::alpha_is_not_opacity(s.name_hash); - (decode(d, s.base_texture(), opaque), decode(d, s.overlay_texture(), false)) + Slots { + base: decode(d, s.base_texture(), opaque), + overlay: decode(d, s.overlay_texture(), false), + normal: decode(d, s.sampler(param::BUMP_TEX), false), + specular: decode(d, s.sampler(param::SPECULAR_TEX), false), + } }) .collect() }) @@ -82,31 +157,30 @@ impl Materials { Self { images, per_shader } } - fn slot(&self, drawable: usize, shader: u16) -> (Option, Option) { + fn slot(&self, drawable: usize, shader: u16) -> Slots { self.per_shader.get(drawable).and_then(|s| s.get(shader as usize)).copied().unwrap_or_default() } - fn image(&self, drawable: usize, shader: u16) -> Option<&Image> { - self.slot(drawable, shader).0.map(|i| &self.images[i]) + fn image(&self, drawable: usize, shader: u16) -> Option<(&Image, &[u8])> { + let image = &*self.images[self.slot(drawable, shader).base?]; + Some((image, image.rgba()?)) } - fn overlay_image(&self, drawable: usize, shader: u16) -> Option<&Image> { - self.slot(drawable, shader).1.map(|i| &self.images[i]) + fn overlay_image(&self, drawable: usize, shader: u16) -> Option<(&Image, &[u8])> { + let image = &*self.images[self.slot(drawable, shader).overlay?]; + Some((image, image.rgba()?)) } - /// RGBA pixels of the base texture of a drawable's shader (for GPU upload). - pub fn texture(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - let i = self.slot(drawable, shader).0?; - let img = &self.images[i]; - Some((i, img.w, img.h, &img.rgba)) + /// The base texture of a drawable's shader, the overlay drawn over it with + /// its alpha on the second UV set, the normal and the specular map. + pub fn pictures(&self, drawable: usize, shader: u16) -> [Option<&Arc>; 4] { + let Slots { base, overlay, normal, specular } = self.slot(drawable, shader); + [base, overlay, normal, specular].map(|i| i.map(|i| &self.images[i])) } - /// RGBA pixels of the overlay texture of a drawable's shader, drawn over - /// the base colour with its alpha on the second UV set (for GPU upload). - pub fn overlay(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - let i = self.slot(drawable, shader).1?; - let img = &self.images[i]; - Some((i, img.w, img.h, &img.rgba)) + /// Lets go of what is on the graphics card now. + pub fn release(&self) { + self.images.iter().for_each(|i| i.release()); } } @@ -160,12 +234,16 @@ pub fn orbit_camera(lo: [f32; 3], hi: [f32; 3], view: View) -> Camera { let center = [(lo[0] + hi[0]) / 2.0, (lo[1] + hi[1]) / 2.0, (lo[2] + hi[2]) / 2.0]; let radius = (dot(sub(hi, lo), sub(hi, lo)).sqrt() / 2.0).max(1e-3); let fov = 40f32.to_radians(); - let distance = radius / (fov / 2.0).sin() / view.zoom.max(0.05); + // A little room around the model. + let whole = radius / (fov / 2.0).sin() * 1.05; + let distance = whole / view.zoom.max(0.05); let (cp, sp, cy, sy) = (view.pitch.cos(), view.pitch.sin(), view.yaw.cos(), view.yaw.sin()); - let eye = [center[0] + distance * cp * cy, center[1] + distance * cp * sy, center[2] + distance * sp]; - let forward = norm(sub(center, eye)); + let towards = [cp * cy, cp * sy, sp]; + let forward = norm([-towards[0], -towards[1], -towards[2]]); let right = norm(cross(forward, [0.0, 0.0, 1.0])); let up = cross(right, forward); + // Nothing but the angles moves the camera: around the middle, on a circle. + let eye = std::array::from_fn(|k| center[k] + distance * towards[k]); Camera { eye, forward, right, up, distance, radius, fov } } @@ -319,7 +397,7 @@ pub fn render_scene(items: &[SceneItem], camera: &Camera, width: usize, height: if let (Some(img), true) = (img, has_uv) { let u = q0 * mesh.uvs[a][0] + q1 * mesh.uvs[b][0] + q2 * mesh.uvs[c][0]; let v = q0 * mesh.uvs[a][1] + q1 * mesh.uvs[b][1] + q2 * mesh.uvs[c][1]; - let t = img.sample(u, v); + let t = img.0.sample(img.1, u, v); if t[3] < 77 { continue; // alpha cut-out } @@ -332,7 +410,7 @@ pub fn render_scene(items: &[SceneItem], camera: &Camera, width: usize, height: let uv = &mesh.uvs1; let u = q0 * uv[a][0] + q1 * uv[b][0] + q2 * uv[c][0]; let v = q0 * uv[a][1] + q1 * uv[b][1] + q2 * uv[c][1]; - let t = img.sample(u, v); + let t = img.0.sample(img.1, u, v); let alpha = t[3] as f32 / 255.0; for k in 0..3 { base[k] += (t[k] as f32 / 255.0 - base[k]) * alpha; diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs new file mode 100644 index 0000000..092d50a --- /dev/null +++ b/crates/openrage-app/src/rpf9.rs @@ -0,0 +1,531 @@ +//! GTA VI archives (RPF9): the stored index of their recovery view, and +//! extraction. +//! +//! The recovery view is for archives whose own table cannot be read. Finding the files of an RPF9 archive means reading all of it (see +//! [`rage_rpf::rpf9`]), which takes minutes for the large ones. The result +//! is kept in the cache directory, one file per archive, and used as long as +//! the archive's size and modification time stay the same. + +use std::collections::HashMap; +use std::fs; +use std::io::{BufWriter, Read, Write}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::{Arc, Mutex, OnceLock}; +use std::time::UNIX_EPOCH; + +use anyhow::{Context, Result}; +use rage_rpf::rpf9::{self, Entry}; +use rage_rpf::{Rpf9, RpfError, vfs}; + +use crate::extract::ExtractSummary; + +/// Start of an index file; the digit changes with the format. +const INDEX_MAGIC: &[u8; 8] = b"ORP9IDX2"; + +/// Where the index of an archive is stored: +/// `/openrage/rpf9-.idx`. +pub fn index_path(archive: &Path) -> Option { + crate::paths::game_cache(archive, "rpf9", "idx") +} + +/// Size and modification time (seconds) of the archive: an index made for +/// other values is out of date. +fn identity(archive: &Path) -> Option<[u8; 16]> { + let meta = fs::metadata(archive).ok()?; + let modified = meta.modified().ok()?.duration_since(UNIX_EPOCH).ok()?.as_secs(); + let mut id = [0u8; 16]; + id[..8].copy_from_slice(&meta.len().to_le_bytes()); + id[8..].copy_from_slice(&modified.to_le_bytes()); + Some(id) +} + +/// The stored index of an archive, if there is one and it is up to date. +pub fn load_index(archive: &Path) -> Option> { + load_index_from(&index_path(archive)?, archive) +} + +fn load_index_from(index: &Path, archive: &Path) -> Option> { + let data = fs::read(index).ok()?; + let rest = data.strip_prefix(INDEX_MAGIC)?.strip_prefix(&identity(archive)?)?; + let entries = rpf9::decode_index(rest)?; + let mut file = fs::File::open(archive).ok()?; + let size = file.metadata().ok()?.len(); + let mut bytes = [0u8; rpf9::HEADER_LEN]; + file.read_exact(&mut bytes).ok()?; + let header = rpf9::Header::parse(&bytes)?; + entries + .iter() + .all(|entry| entry.offset >= u64::from(header.data_offset) && entry.offset + entry.stored <= size) + .then_some(entries) +} + +/// Stores the index of an archive. +pub fn store_index(archive: &Path, entries: &[Entry]) -> Result<()> { + store_index_to(&index_path(archive).context("no cache directory")?, archive, entries) +} + +fn store_index_to(index: &Path, archive: &Path, entries: &[Entry]) -> Result<()> { + let id = identity(archive).context("archive not readable")?; + if let Some(dir) = index.parent() { + fs::create_dir_all(dir)?; + } + // Written beside and renamed: a stopped write leaves no half index. + let partial = index.with_extension("idx.part"); + let mut data = Vec::from(INDEX_MAGIC); + data.extend_from_slice(&id); + data.extend_from_slice(&rpf9::encode_index(entries)); + fs::write(&partial, data)?; + fs::rename(&partial, index)?; + Ok(()) +} + +/// Start of a names file; the digit changes with the format. +const NAMES_MAGIC: &[u8; 8] = b"ORP9NAM2"; +/// How much of a resource is read to find its name. +const NAME_PREFIX: usize = 256 << 10; + +/// Where the names of an archive's models are stored, beside its index. +pub fn names_path(archive: &Path) -> Option { + crate::paths::game_cache(archive, "rpf9", "names") +} + +/// The stored names of an archive, if there are any and they are up to date. +pub fn load_names(archive: &Path) -> Option { + let data = fs::read(names_path(archive)?).ok()?; + let mut rest = data.strip_prefix(NAMES_MAGIC)?.strip_prefix(&identity(archive)?)?; + let mut found = Vec::new(); + while !rest.is_empty() { + let offset = u64::from_le_bytes(rest.get(..8)?.try_into().ok()?); + let len = usize::from(u16::from_le_bytes(rest.get(8..10)?.try_into().ok()?)); + found.push((offset, String::from_utf8(rest.get(10..10 + len)?.to_vec()).ok()?)); + rest = &rest[10 + len..]; + } + Some(rpf9::Names::new(found)) +} + +/// Stores the names of an archive's models. +pub fn store_names(archive: &Path, names: &[(u64, String)]) -> Result<()> { + let path = names_path(archive).context("no cache directory")?; + let id = identity(archive).context("archive not readable")?; + if let Some(dir) = path.parent() { + fs::create_dir_all(dir)?; + } + let mut data = Vec::from(NAMES_MAGIC); + data.extend_from_slice(&id); + for (offset, name) in names { + data.extend_from_slice(&offset.to_le_bytes()); + data.extend_from_slice(&(name.len().min(usize::from(u16::MAX)) as u16).to_le_bytes()); + data.extend_from_slice(&name.as_bytes()[..name.len().min(usize::from(u16::MAX))]); + } + let partial = path.with_extension("names.part"); + fs::write(&partial, data)?; + fs::rename(&partial, &path)?; + Ok(()) +} + +/// Reads the start of every resource of an archive and returns the names +/// of those that are models; a dictionary of models is named by its offset. `progress` gets the resources read and their +/// number; setting `cancel` stops with what was found so far (`None`). +pub fn scan_names( + rpf: &Rpf9, + entries: &[Entry], + cancel: &AtomicBool, + progress: &(dyn Fn(u64, u64) + Sync), +) -> Option> { + use rayon::prelude::*; + let resources: Vec<&Entry> = entries.iter().filter(|e| e.is_resource()).collect(); + let (done, total) = (std::sync::atomic::AtomicU64::new(0), resources.len() as u64); + let found: Vec<(u64, String)> = resources + .par_iter() + .filter_map(|e| { + if cancel.load(Ordering::Relaxed) { + return None; + } + let n = done.fetch_add(1, Ordering::Relaxed) + 1; + if n.is_multiple_of(256) || n == total { + progress(n, total); + } + let start = rpf.read_start(e, NAME_PREFIX).ok()?; + // A dictionary of models has no name of its own. + let name = match rage_formats::drawable6::root(&start)? { + rage_formats::drawable6::Root::Dictionary => format!("dictionary_{:012x}.#dd", e.offset), + _ => rage_formats::drawable6::name(&start)?, + }; + Some((e.offset, name)) + }) + .collect(); + (!cancel.load(Ordering::Relaxed)).then_some(found) +} + +/// What [`register`] reports to: the archive's file name with the bytes read +/// and to read, or `None` when the scan is over. +pub type Report = dyn Fn(Option<(&str, u64, u64)>) + Send + Sync; + +/// Makes [`Rpf9::entries`] use the stored index, and scan and store it when +/// there is none. `report` gets the archive's file name with the bytes read +/// and to read while scanning, and `None` when the scan is over. +pub fn register(report: Arc) { + let _ = REPORT.set(Arc::clone(&report)); + rpf9::set_indexer(Arc::new(move |rpf: &Rpf9| index(rpf, &AtomicBool::new(false), &*report))); + rpf9::set_namer(Arc::new(|rpf: &Rpf9| load_names(rpf.path()))); + if let Some(learned) = learned_path().and_then(|p| fs::read_to_string(p).ok()) { + rpf9::add_names(learned.lines().map(str::to_owned)); + } +} + +/// Where names that were learned from all of the game's archives are stored. +/// They are checked by their hashes, so they are good for any game folder. +fn learned_path() -> Option { + Some(crate::paths::cache_dir()?.join("gta6-names.txt")) +} + +/// Whether names were learned before. +pub fn knows_names() -> bool { + learned_path().is_some_and(|p| p.is_file()) +} + +/// Names files in a game's index after those in other archives, and keeps the +/// names for when archives are opened. +pub fn learn_names(index: &mut rage_index::Index) -> Result { + let mut found = index.learn_gta6_names()?; + let count = found.len(); + if count == 0 { + return Ok(0); + } + let path = learned_path().context("no cache directory")?; + if let Ok(known) = fs::read_to_string(&path) { + found.extend(known.lines().map(str::to_owned)); + } + found.sort_unstable(); + found.dedup(); + let partial = path.with_extension("txt.part"); + fs::write(&partial, found.join("\n"))?; + fs::rename(&partial, &path)?; + rpf9::add_names(found); + Ok(count) +} + +static REPORT: OnceLock> = OnceLock::new(); + +/// One lock per archive: two threads that want the same index (the window +/// and the background run) scan it once; the second finds it stored. +fn scan_lock(archive: &Path) -> Arc> { + static LOCKS: OnceLock>>>> = OnceLock::new(); + let mut locks = LOCKS.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); + Arc::clone(locks.entry(archive.to_path_buf()).or_default()) +} + +/// The entries of an archive: from the stored index, or scanned and stored. +fn index(rpf: &Rpf9, cancel: &AtomicBool, report: &Report) -> Result, RpfError> { + let lock = scan_lock(rpf.path()); + let _scanning = lock.lock().unwrap_or_else(|e| e.into_inner()); + if let Some(entries) = load_index(rpf.path()) { + return Ok(entries); + } + let name = rpf.path().file_name().unwrap_or_default().to_string_lossy().into_owned(); + report(Some((&name, 0, rpf.data_len()))); + let scanned = rpf.scan(cancel, &|done, total| report(Some((&name, done, total)))); + report(None); + let entries = scanned?; + // The index only saves time: failing to store it is no error. + let _ = store_index(rpf.path(), &entries); + Ok(entries) +} + +/// Finds and stores the names of an archive's models, unless they are +/// stored already, and gives them to `rpf`. +pub fn ensure_names(rpf: &Rpf9, entries: &[Entry], cancel: &AtomicBool, report: &Report) { + if rpf.is_native() { + return; + } + let lock = scan_lock(rpf.path()); + let _scanning = lock.lock().unwrap_or_else(|e| e.into_inner()); + if load_names(rpf.path()).is_some() { + return; + } + let name = format!("{} (model names)", rpf.path().file_name().unwrap_or_default().to_string_lossy()); + report(Some((&name, 0, 1))); + let found = scan_names(rpf, entries, cancel, &|done, total| report(Some((&name, done, total)))); + report(None); + if let Some(found) = found { + // The names only help reading the list: failing to store them is no error. + let _ = store_names(rpf.path(), &found); + rpf.set_names(rpf9::Names::new(found)); + } +} + +/// The names for the archive a command works on: read from the models once +/// if they are not stored yet. For programs without a background run. +pub fn names_now(rpf: &Rpf9) { + if let (Ok(entries), Some(report)) = (rpf.entries(), REPORT.get()) { + ensure_names(rpf, &entries, &AtomicBool::new(false), &**report); + } +} + +/// The run started by [`index_in_background`], to stop it. +static BACKGROUND: Mutex>> = Mutex::new(None); + +/// Stops the background run, if one is going. +pub fn stop_background() { + if let Some(stop) = BACKGROUND.lock().unwrap_or_else(|e| e.into_inner()).take() { + stop.store(true, Ordering::Relaxed); + } +} + +/// Indexes the archives below `game_dir` that have no stored index yet, one +/// after the other (smallest first), on a thread of its own. Opening an +/// archive meanwhile waits for its index or makes it. A run started before +/// is stopped. +pub fn index_in_background(game_dir: &Path) { + stop_background(); + let stop = Arc::new(AtomicBool::new(false)); + *BACKGROUND.lock().unwrap_or_else(|e| e.into_inner()) = Some(Arc::clone(&stop)); + let game_dir = game_dir.to_path_buf(); + std::thread::spawn(move || { + let mut archives = Vec::new(); + crate::detect::collect_archives(&game_dir, &["rpf"], &mut archives); + archives.retain(|p| { + Rpf9::file_is_rpf9(p) + && (load_index(p).is_none() || names_path(p).is_none_or(|n| !n.is_file() || load_names(p).is_none())) + }); + archives.sort_by_key(|p| fs::metadata(p).map_or(0, |m| m.len())); + let quiet: &Report = &|_| {}; + let report: &Report = REPORT.get().map_or(quiet, |r| &**r); + for archive in archives { + if stop.load(Ordering::Relaxed) { + break; + } + let Ok(rpf) = Rpf9::open(&archive) else { continue }; + if rpf.is_native() { + continue; + } + let Ok(entries) = index(&rpf, &stop, report) else { continue }; + ensure_names(&rpf, &entries, &stop, report); + } + }); +} + +/// The entries of an archive if they are at hand without scanning it. +pub fn known_entries(rpf: &Rpf9) -> Option>> { + rpf.loaded().or_else(|| if rpf.is_native() { rpf.entries().ok() } else { load_index(rpf.path()).map(Arc::new) }) +} + +/// Totals of an archive's entries. +#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] +pub struct Coverage { + pub files: u64, + /// Bytes of the archive the files take. + pub stored: u64, + /// Bytes the files unpack to. + pub unpacked: u64, + /// Bytes of the data area that belong to no file: padding, and data that + /// is neither zlib, Bink 2 nor an audio container. + pub unread: u64, +} + +pub fn coverage(rpf: &Rpf9, entries: &[Entry]) -> Coverage { + let stored: u64 = entries.iter().map(|e| e.stored).sum(); + Coverage { + files: entries.len() as u64, + stored, + unpacked: entries.iter().map(|e| e.size).sum(), + unread: rpf.data_len().saturating_sub(stored), + } +} + +/// The system and graphics parts of a resource. +pub fn resource(rpf: &Rpf9, index: usize) -> Result<(Vec, Vec)> { + let entries = rpf.entries()?; + let entry = entries.get(index).context("no such entry")?; + let (system, _) = rpf.resource_parts(entry).context("not a resource")?; + let mut data = rpf.read(entry)?; + if system as usize > data.len() { + anyhow::bail!("the resource is cut off"); + } + let graphics = data.split_off(system as usize); + Ok((data, graphics)) +} + +/// Extracts from a GTA VI archive into `out`: one file (`file`), or +/// everything below folder `dir`. Files are written unpacked, straight to +/// disk; with `expand`, archives inside become folders. Unreadable files are +/// listed in `failures` and skipped. +pub fn extract( + rpf: &Rpf9, + dir: &str, + file: Option, + out: &Path, + expand: bool, + cancel: &AtomicBool, + progress: &mut dyn FnMut(&ExtractSummary, &str), +) -> Result { + let mut summary = ExtractSummary { target: out.to_path_buf(), ..Default::default() }; + if let Some(i) = file { + let entries = rpf.entries()?; + let entry = entries.get(i).context("no such entry")?; + let name = rpf.entry_name(entry); + let base = name.rsplit('/').next().unwrap_or(&name).to_owned(); + extract_entry(rpf, entry, &base, out, expand, cancel, progress, &mut summary)?; + summary.target = out.join(base); + } else { + extract_dir(rpf, dir, out, expand, cancel, progress, &mut summary)?; + } + Ok(summary) +} + +/// Everything below `dir`, with its path from there on. +fn extract_dir( + rpf: &Rpf9, + dir: &str, + out: &Path, + expand: bool, + cancel: &AtomicBool, + progress: &mut dyn FnMut(&ExtractSummary, &str), + summary: &mut ExtractSummary, +) -> Result<()> { + let prefix = if dir.is_empty() { String::new() } else { format!("{dir}/") }; + for e in rpf.entries()?.iter() { + let name = rpf.entry_name(e); + if !name.get(..prefix.len()).is_some_and(|start| start.eq_ignore_ascii_case(&prefix)) { + continue; + } + if cancel.load(Ordering::Relaxed) { + summary.cancelled = true; + break; + } + extract_entry(rpf, e, &name[prefix.len()..], out, expand, cancel, progress, summary)?; + } + Ok(()) +} + +#[expect(clippy::too_many_arguments)] +fn extract_entry( + rpf: &Rpf9, + entry: &Entry, + rel: &str, + out: &Path, + expand: bool, + cancel: &AtomicBool, + progress: &mut dyn FnMut(&ExtractSummary, &str), + summary: &mut ExtractSummary, +) -> Result<()> { + let Some(path) = vfs::safe_relative_path(rel) else { + summary.failures.push(format!("unsafe path {rel}")); + return Ok(()); + }; + let target = out.join(path); + if expand && rpf.is_archive(entry) { + match rpf.open_child(entry) { + Ok(child) => return extract_dir(&child, "", &target, expand, cancel, progress, summary), + Err(e) => summary.failures.push(e.to_string()), + } + return Ok(()); + } + let parent = target.parent().map_or(Ok(()), fs::create_dir_all); + let mut writer = match parent.and_then(|()| fs::File::create(&target)) { + Ok(file) => BufWriter::new(file), + // A full disk stops everything, another bad file only itself. + Err(e) if e.kind() == std::io::ErrorKind::StorageFull => return Err(e.into()), + Err(e) => { + summary.failures.push(format!("{}: {e}", target.display())); + return Ok(()); + } + }; + match rpf.copy_to(entry, &mut writer).and_then(|n| Ok(writer.flush().map(|()| n)?)) { + Ok(bytes) => { + summary.files += 1; + summary.bytes += bytes; + } + Err(e) => { + drop(writer); + let _ = fs::remove_file(&target); + summary.failures.push(e.to_string()); + } + } + progress(summary, rel); + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + use flate2::Compression; + use flate2::write::ZlibEncoder; + + fn archive(dir: &Path) -> PathBuf { + let mut data = vec![0u8; 0x40]; + data[..4].copy_from_slice(b"9FPR"); + data[4..8].copy_from_slice(&0x40u32.to_le_bytes()); + for text in [&b""[..], b"PSIN\x00\x01binary"] { + let mut enc = ZlibEncoder::new(Vec::new(), Compression::default()); + enc.write_all(text).unwrap(); + data.extend(enc.finish().unwrap()); + data.resize(data.len().next_multiple_of(16), 0); + } + let path = dir.join("test.rpf"); + fs::write(&path, data).unwrap(); + path + } + + fn temp(name: &str) -> PathBuf { + let dir = std::env::temp_dir().join(format!("openrage-app-rpf9-{}-{name}", std::process::id())); + let _ = fs::remove_dir_all(&dir); + fs::create_dir_all(&dir).unwrap(); + dir + } + + #[test] + fn the_index_is_stored_and_dropped_when_the_archive_changes() { + let dir = temp("index"); + let path = archive(&dir); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap(); + assert_eq!(entries.len(), 2); + let index = dir.join("test.idx"); + assert_eq!(load_index_from(&index, &path), None); + store_index_to(&index, &path, &entries).unwrap(); + assert_eq!(load_index_from(&index, &path).as_deref(), Some(&entries[..])); + let mut outside = entries.clone(); + outside[1].offset = fs::metadata(&path).unwrap().len(); + store_index_to(&index, &path, &outside).unwrap(); + assert_eq!(load_index_from(&index, &path), None); + store_index_to(&index, &path, &entries).unwrap(); + let c = coverage(&rpf, &entries); + assert_eq!((c.files, c.unpacked), (2, 25 + 12)); + assert_eq!(c.stored + c.unread, rpf.data_len()); + + let mut longer = fs::read(&path).unwrap(); + longer.extend([0u8; 16]); + fs::write(&path, longer).unwrap(); + assert_eq!(load_index_from(&index, &path), None); + fs::remove_dir_all(dir).unwrap(); + } + + #[test] + fn extracts_a_folder_and_a_single_file() { + let dir = temp("extract"); + let path = archive(&dir); + let rpf = Rpf9::open(&path).unwrap(); + rpf.set_entries(rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap()); + let quiet = AtomicBool::new(false); + + let all = extract(&rpf, "", None, &dir.join("all"), false, &quiet, &mut |_, _| {}).unwrap(); + assert_eq!((all.files, all.failures.len()), (2, 0)); + assert_eq!(fs::read(dir.join("all/xml/000000000040.xml")).unwrap(), b""); + + let psin = extract(&rpf, "PSIN", None, &dir.join("psin"), false, &quiet, &mut |_, _| {}).unwrap(); + assert_eq!(psin.files, 1); + assert!( + fs::read_dir(dir.join("psin")) + .unwrap() + .flatten() + .all(|f| f.file_name().to_string_lossy().ends_with(".psin")) + ); + + let one = extract(&rpf, "", Some(0), &dir.join("one"), false, &quiet, &mut |_, _| {}).unwrap(); + assert_eq!(one.target, dir.join("one/000000000040.xml")); + assert!(one.target.is_file()); + fs::remove_dir_all(dir).unwrap(); + } +} diff --git a/crates/openrage-app/src/textures.rs b/crates/openrage-app/src/textures.rs index 656f007..e2b2d9d 100644 --- a/crates/openrage-app/src/textures.rs +++ b/crates/openrage-app/src/textures.rs @@ -93,6 +93,12 @@ pub fn edit_textures( Ok((result, applied.path)) } +/// The textures of a GTA VI dictionary (`.#td`). +pub fn gta6_dictionary(rpf: &rage_rpf::Rpf9, index: usize) -> Result { + let (system, graphics) = crate::rpf9::resource(rpf, index)?; + Ok(rage_formats::td6::parse(&system, &graphics)?) +} + /// The extension of a GTA V model (`ydr`, `yft`, `ydd`) named by `vpath`. pub fn gta5_model_ext(vpath: &str) -> Option<&str> { let ext = vpath.rsplit('.').next()?; diff --git a/crates/openrage-app/src/third_party_licenses.json b/crates/openrage-app/src/third_party_licenses.json index 4002005..27ab2b8 100644 --- a/crates/openrage-app/src/third_party_licenses.json +++ b/crates/openrage-app/src/third_party_licenses.json @@ -1 +1 @@ -{"crates":[{"name":"ab_glyph","version":"0.2.32","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"ab_glyph_rasterizer","version":"0.1.10","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"accesskit","version":"0.24.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_atspi_common","version":"0.19.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_consumer","version":"0.38.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_unix","version":"0.22.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_windows","version":"0.34.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_winit","version":"0.33.2","license":"Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"adler2","version":"2.0.1","license":"0BSD OR MIT OR Apache-2.0","repository":"https://github.com/oyvindln/adler2","texts":[0]},{"name":"aes","version":"0.8.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/block-ciphers","texts":[24]},{"name":"ahash","version":"0.8.12","license":"MIT OR Apache-2.0","repository":"https://github.com/tkaitchuck/ahash","texts":[21]},{"name":"allocator-api2","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/zakarumych/allocator-api2","texts":[40]},{"name":"alsa","version":"0.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/diwic/alsa-rs","texts":[40]},{"name":"alsa-sys","version":"0.4.0","license":"MIT","repository":"https://github.com/diwic/alsa-sys","texts":[81]},{"name":"annotate-snippets","version":"0.12.17","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/annotate-snippets-rs","texts":[9]},{"name":"anstream","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle","version":"1.0.14","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-parse","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-query","version":"1.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-wincon","version":"3.0.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anyhow","version":"1.0.104","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/anyhow","texts":[40]},{"name":"arbitrary","version":"1.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-fuzz/arbitrary/","texts":[21]},{"name":"arboard","version":"3.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/arboard","texts":[40]},{"name":"arrayref","version":"0.3.9","license":"BSD-2-Clause","repository":"https://github.com/droundy/arrayref","texts":[42]},{"name":"arrayvec","version":"0.7.8","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/arrayvec","texts":[21]},{"name":"as-raw-xcb-connection","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/as-raw-xcb-connection","texts":[3]},{"name":"ash","version":"0.38.0+1.3.281","license":"MIT OR Apache-2.0","repository":"https://github.com/ash-rs/ash","texts":[34]},{"name":"ashpd","version":"0.11.1","license":"MIT","repository":"https://github.com/bilelmoussaoui/ashpd","texts":[84]},{"name":"async-broadcast","version":"0.7.2","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/async-broadcast","texts":[11]},{"name":"async-channel","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-channel","texts":[21]},{"name":"async-executor","version":"1.14.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-executor","texts":[21]},{"name":"async-fs","version":"2.2.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-fs","texts":[21]},{"name":"async-io","version":"2.6.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-io","texts":[21]},{"name":"async-lock","version":"3.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-lock","texts":[21]},{"name":"async-net","version":"2.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-net","texts":[21]},{"name":"async-process","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-process","texts":[21]},{"name":"async-recursion","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dcchut/async-recursion","texts":[20]},{"name":"async-signal","version":"0.2.14","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-signal","texts":[21]},{"name":"async-task","version":"4.7.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-task","texts":[21]},{"name":"async-trait","version":"0.1.92","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/async-trait","texts":[40]},{"name":"atomic-waker","version":"1.1.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/atomic-waker","texts":[21]},{"name":"atspi","version":"0.29.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-common","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-proxies","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"autocfg","version":"1.5.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/cuviper/autocfg","texts":[21]},{"name":"base64","version":"0.23.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marshallpierce/rust-base64","texts":[21]},{"name":"bit-set","version":"0.10.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-set","texts":[23]},{"name":"bit-vec","version":"0.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-vec","texts":[23]},{"name":"bitflags","version":"2.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/bitflags/bitflags","texts":[21]},{"name":"block-buffer","version":"0.10.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"blocking","version":"1.7.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/blocking","texts":[21]},{"name":"bumpalo","version":"3.20.3","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/bumpalo","texts":[21]},{"name":"by_address","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/mbrubeck/by_address","texts":[21]},{"name":"bytemuck","version":"1.25.2","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"bytemuck_derive","version":"1.12.1","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"byteorder","version":"1.5.0","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/byteorder","texts":[100]},{"name":"byteorder-lite","version":"0.1.0","license":"Unlicense OR MIT","repository":"https://github.com/image-rs/byteorder-lite","texts":[100]},{"name":"bytes","version":"1.12.1","license":"MIT","repository":"https://github.com/tokio-rs/bytes","texts":[61]},{"name":"calloop","version":"0.13.0","license":"MIT","repository":"https://github.com/Smithay/calloop","texts":[63]},{"name":"calloop-wayland-source","version":"0.3.0","license":"MIT","repository":"https://github.com/smithay/calloop-wayland-source","texts":[70]},{"name":"cc","version":"1.11.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"cfg-if","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cfg-if","texts":[21]},{"name":"cfg_aliases","version":"0.2.2","license":"MIT","repository":"https://github.com/katharostech/cfg_aliases","texts":[51,85]},{"name":"chacha20","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/stream-ciphers","texts":[24]},{"name":"chrono","version":"0.4.45","license":"MIT OR Apache-2.0","repository":"https://github.com/chronotope/chrono","texts":[41]},{"name":"cipher","version":"0.4.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"clap","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_builder","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_derive","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_lex","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clipboard-win","version":"5.4.3","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/clipboard-win","texts":[47]},{"name":"clru","version":"0.6.3","license":"MIT","repository":"https://github.com/marmeladema/clru-rs","texts":[68]},{"name":"cobs","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/cobs.rs","texts":[10]},{"name":"codespan-reporting","version":"0.13.1","license":"Apache-2.0","repository":"https://github.com/brendanzab/codespan","texts":[8]},{"name":"color_quant","version":"1.1.0","license":"MIT","repository":"https://github.com/image-rs/color_quant.git","texts":[103]},{"name":"colorchoice","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"concurrent-queue","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/concurrent-queue","texts":[21]},{"name":"const-field-offset","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"const-field-offset-macro","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"constant_time_eq","version":"0.6.1","license":"CC0-1.0 OR MIT-0 OR Apache-2.0","repository":"https://codeberg.org/cesarb/constant_time_eq","texts":[40]},{"name":"convert_case","version":"0.10.0","license":"MIT","repository":"https://github.com/rutrum/convert-case","texts":[88]},{"name":"core_detect","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/thomcc/core_detect","texts":[20]},{"name":"countme","version":"3.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/countme","texts":[21]},{"name":"cpal","version":"0.18.2","license":"Apache-2.0","repository":"https://github.com/RustAudio/cpal","texts":[8]},{"name":"cpufeatures","version":"0.2.17","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cpufeatures","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cranelift-assembler-x64","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-assembler-x64-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-bforest","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-bitset","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"cranelift-codegen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-shared","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-control","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-entity","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-frontend","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-isle","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/isle","texts":[40]},{"name":"cranelift-native","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-srcgen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"crc32fast","version":"1.5.5","license":"MIT OR Apache-2.0","repository":"https://github.com/srijs/rust-crc32fast","texts":[10]},{"name":"critical-section","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-embedded/critical-section","texts":[21]},{"name":"crossbeam-channel","version":"0.5.17","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-deque","version":"0.8.8","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-epoch","version":"0.9.21","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-utils","version":"0.8.23","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crypto-common","version":"0.1.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"ctor","version":"0.10.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/mmastrac/rust-ctor","texts":[38]},{"name":"cursor-icon","version":"1.2.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/cursor-icon","texts":[2]},{"name":"dasp_sample","version":"0.11.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rustaudio/sample.git","texts":[40]},{"name":"data-url","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"derive_more","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[102]},{"name":"derive_more-impl","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[102]},{"name":"digest","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"dirs","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/soc/dirs-rs","texts":[40]},{"name":"dirs-sys","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dirs-dev/dirs-sys-rs","texts":[40]},{"name":"displaydoc","version":"0.2.7","license":"MIT OR Apache-2.0","repository":"https://github.com/yaahc/displaydoc","texts":[21]},{"name":"dlib","version":"0.5.3","license":"MIT","repository":"https://github.com/elinorbgr/dlib","texts":[59]},{"name":"document-features","version":"0.2.12","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/document-features","texts":[40]},{"name":"downcast-rs","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marcianx/downcast-rs","texts":[23]},{"name":"dpi","version":"0.1.2","license":"Apache-2.0 AND MIT","repository":"https://github.com/rust-windowing/winit","texts":[37,89]},{"name":"either","version":"1.19.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/either","texts":[21]},{"name":"encoding_rs","version":"0.8.44","license":"(Apache-2.0 OR MIT) AND BSD-3-Clause","repository":"https://github.com/hsivonen/encoding_rs","texts":[3,43,45]},{"name":"endi","version":"1.1.1","license":"MIT","repository":"https://github.com/zeenix/endi","texts":[93]},{"name":"enumflags2","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[32]},{"name":"enumflags2_derive","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[33]},{"name":"env_filter","version":"2.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"env_logger","version":"0.11.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"equivalent","version":"1.0.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/equivalent","texts":[21]},{"name":"errno","version":"0.3.14","license":"MIT OR Apache-2.0","repository":"https://github.com/lambda-fairy/rust-errno","texts":[21]},{"name":"error-code","version":"3.4.0","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/error-code","texts":[46]},{"name":"euclid","version":"0.22.14","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/euclid","texts":[21]},{"name":"event-listener","version":"5.4.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener","texts":[21]},{"name":"event-listener-strategy","version":"0.5.4","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener-strategy","texts":[21]},{"name":"fallible-iterator","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/rust-fallible-iterator","texts":[10]},{"name":"fallible-streaming-iterator","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/fallible-streaming-iterator","texts":[10]},{"name":"fastrand","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/fastrand","texts":[21]},{"name":"fdeflate","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/fdeflate","texts":[40]},{"name":"femtovg","version":"0.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/femtovg/femtovg","texts":[40]},{"name":"field-offset","version":"0.3.6","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/rust-field-offset","texts":[40]},{"name":"find-msvc-tools","version":"0.1.15","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"fixed_decimal","version":"0.7.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"fixedbitset","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/fixedbitset","texts":[21]},{"name":"flate2","version":"1.1.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/flate2-rs","texts":[21]},{"name":"float-cmp","version":"0.9.0","license":"MIT","repository":"https://github.com/mikedilger/float-cmp","texts":[56]},{"name":"fnv","version":"1.0.7","license":"Apache-2.0 OR MIT","repository":"https://github.com/servo/rust-fnv","texts":[21]},{"name":"foldhash","version":"0.1.5","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[119]},{"name":"foldhash","version":"0.2.0","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[119]},{"name":"font-types","version":"0.12.7","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"fontdb","version":"0.24.0","license":"MIT","repository":"https://github.com/RazrFalcon/fontdb","texts":[106]},{"name":"fontique","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"form_urlencoded","version":"1.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"futures","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-channel","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-core","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-executor","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-io","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-lite","version":"2.6.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/futures-lite","texts":[21]},{"name":"futures-macro","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-sink","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-task","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-util","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"generic-array","version":"0.14.7","license":"MIT","repository":"https://github.com/fizyk20/generic-array.git","texts":[111]},{"name":"gethostname","version":"1.1.0","license":"Apache-2.0","repository":"https://codeberg.org/swsnr/gethostname.rs.git","texts":[21]},{"name":"getrandom","version":"0.3.4","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"getrandom","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"gif","version":"0.14.2","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-gif","texts":[20]},{"name":"gimli","version":"0.33.0","license":"MIT OR Apache-2.0","repository":"https://github.com/gimli-rs/gimli","texts":[21]},{"name":"gl_generator","version":"0.14.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"glow","version":"0.17.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glow","version":"0.18.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glutin","version":"0.32.3","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin-winit","version":"0.5.0","license":"MIT","repository":"https://github.com/rust-windowing/glutin","texts":[77]},{"name":"glutin_egl_sys","version":"0.7.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_glx_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_wgl_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"gpu-allocator","version":"0.28.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Traverse-Research/gpu-allocator","texts":[18]},{"name":"half","version":"2.7.1","license":"MIT OR Apache-2.0","repository":"https://github.com/VoidStarKat/half-rs","texts":[40]},{"name":"harfrust","version":"0.12.0","license":"MIT","repository":"https://github.com/harfbuzz/harfrust","texts":[108]},{"name":"hashbrown","version":"0.14.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.15.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.16.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.17.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashlink","version":"0.12.2","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/hashlink","texts":[22]},{"name":"heck","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/withoutboats/heck","texts":[21]},{"name":"hex","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/KokaKiwi/rust-hex","texts":[10]},{"name":"htmlparser","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/jdrouet/htmlparser.git","texts":[21]},{"name":"i-slint-backend-selector","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-backend-winit","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-common","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-compiler","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-core","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-core-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-renderer-femtovg","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-renderer-software","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"iana-time-zone","version":"0.1.65","license":"MIT OR Apache-2.0","repository":"https://github.com/strawlab/iana-time-zone","texts":[17]},{"name":"icu_collections","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_decimal","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_decimal_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_locale_core","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_locale_fallback","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_locale_fallback_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_normalizer","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_normalizer_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_properties","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_properties_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_provider","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_segmenter","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_segmenter_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"id-arena","version":"2.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/id-arena","texts":[21]},{"name":"idna","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"idna_adapter","version":"1.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/idna_adapter","texts":[21]},{"name":"image","version":"0.25.10","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image","texts":[40]},{"name":"image-webp","version":"0.2.4","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-webp","texts":[40]},{"name":"imagesize","version":"0.15.0","license":"MIT","repository":"https://github.com/Roughsketch/imagesize","texts":[80]},{"name":"imgref","version":"1.12.3","license":"CC0-1.0 OR Apache-2.0","repository":"https://github.com/kornelski/imgref","texts":[8]},{"name":"indexmap","version":"2.14.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/indexmap","texts":[21]},{"name":"inout","version":"0.1.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"is_terminal_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/is_terminal_polyfill","texts":[10]},{"name":"itertools","version":"0.14.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itertools","version":"0.15.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itoa","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/itoa","texts":[40]},{"name":"keyboard-types","version":"0.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/pyfisch/keyboard-types","texts":[20]},{"name":"khronos-egl","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/timothee-haudebourg/khronos-egl","texts":[21]},{"name":"khronos_api","version":"3.1.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"kurbo","version":"0.13.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"lazy_static","version":"1.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang-nursery/lazy-static.rs","texts":[21]},{"name":"leb128fmt","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluk/leb128fmt","texts":[21]},{"name":"lewton","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/lewton","texts":[40]},{"name":"libc","version":"0.2.191","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/libc","texts":[40]},{"name":"libloading","version":"0.8.9","license":"ISC","repository":"https://github.com/nagisa/rust_libloading/","texts":[49]},{"name":"libm","version":"0.2.16","license":"MIT","repository":"https://github.com/rust-lang/compiler-builtins","texts":[89]},{"name":"libsqlite3-sys","version":"0.39.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[54]},{"name":"linebender_resource_handle","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/raw_resource_handle","texts":[40]},{"name":"linux-raw-sys","version":"0.12.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"linux-raw-sys","version":"0.4.15","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"litemap","version":"0.8.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"litrs","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/LukasKalbertodt/litrs","texts":[40]},{"name":"lock_api","version":"0.4.14","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"log","version":"0.4.35","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/log","texts":[21]},{"name":"lyon_algorithms","version":"1.0.22","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_extra","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_geom","version":"1.0.20","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_path","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"memchr","version":"2.8.3","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/memchr","texts":[100]},{"name":"memfd","version":"0.6.6","license":"MIT OR Apache-2.0","repository":"https://github.com/lucab/memfd-rs","texts":[8]},{"name":"memmap2","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/memmap2-rs","texts":[19]},{"name":"memoffset","version":"0.9.1","license":"MIT","repository":"https://github.com/Gilnaa/memoffset","texts":[60]},{"name":"miniz_oxide","version":"0.8.9","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"miniz_oxide","version":"0.9.1","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"mio","version":"1.2.4","license":"MIT","repository":"https://github.com/tokio-rs/mio","texts":[53]},{"name":"moxcms","version":"0.8.1","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/moxcms.git","texts":[7]},{"name":"muda","version":"0.19.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/tauri-apps/muda","texts":[21]},{"name":"multiversion_no_op","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/multiversion_no_op","texts":[3]},{"name":"naga","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"naga-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"natord","version":"1.0.9","license":"MIT","repository":"https://github.com/lifthrasiir/rust-natord","texts":[98]},{"name":"nom","version":"8.0.0","license":"MIT","repository":"https://github.com/rust-bakery/nom","texts":[55]},{"name":"num-bigint","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-bigint","texts":[21]},{"name":"num-complex","version":"0.4.6","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-complex","texts":[21]},{"name":"num-integer","version":"0.1.47","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-integer","texts":[21]},{"name":"num-rational","version":"0.4.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-rational","texts":[21]},{"name":"num-traits","version":"0.2.19","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-traits","texts":[21]},{"name":"num_enum","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"num_enum_derive","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"object","version":"0.40.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/gimli-rs/object","texts":[21]},{"name":"once_cell","version":"1.21.4","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/once_cell","texts":[21]},{"name":"once_cell_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/once_cell_polyfill","texts":[10]},{"name":"oozextract","version":"0.5.7","license":"MIT","repository":"https://github.com/lvlvllvlvllvlvl/oozextract","texts":[89]},{"name":"option-ext","version":"0.2.0","license":"MPL-2.0","repository":"https://github.com/soc/option-ext.git","texts":[115]},{"name":"ordered-float","version":"5.5.1","license":"MIT","repository":"https://github.com/reem/rust-ordered-float","texts":[58]},{"name":"ordered-stream","version":"0.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/danieldg/ordered-stream","texts":[21]},{"name":"os_pipe","version":"1.2.3","license":"MIT","repository":"https://github.com/oconnor663/os_pipe.rs","texts":[110]},{"name":"owned_ttf_parser","version":"0.25.1","license":"Apache-2.0","repository":"https://github.com/alexheretic/owned-ttf-parser","texts":[40]},{"name":"parking","version":"2.2.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/parking","texts":[21]},{"name":"parking_lot","version":"0.12.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parking_lot_core","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parlance","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley_data","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"paste","version":"1.0.15","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/paste","texts":[40]},{"name":"percent-encoding","version":"2.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"petgraph","version":"0.8.3","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/petgraph","texts":[21]},{"name":"phf","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"phf_generator","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"phf_macros","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"phf_shared","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"pico-args","version":"0.5.0","license":"MIT","repository":"https://github.com/RazrFalcon/pico-args","texts":[66]},{"name":"pin-project","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-internal","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-lite","version":"0.2.17","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project-lite","texts":[40]},{"name":"pin-utils","version":"0.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pin-utils","texts":[14]},{"name":"pin-weak","version":"1.1.0","license":"MIT","repository":"https://github.com/sixtyfpsui/pin-weak","texts":[67]},{"name":"piper","version":"0.2.5","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/piper","texts":[21]},{"name":"pkg-config","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pkg-config-rs","texts":[21]},{"name":"png","version":"0.18.1","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-png","texts":[21]},{"name":"polling","version":"3.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/polling","texts":[21]},{"name":"pollster","version":"0.4.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"pollster","version":"1.0.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"polycool","version":"0.4.0","license":"MIT OR Apache-2.0","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"portable-atomic","version":"1.15.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/portable-atomic","texts":[40]},{"name":"postcard","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/postcard","texts":[21]},{"name":"potential_utf","version":"0.1.6","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"ppv-lite86","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/cryptocorrosion/cryptocorrosion","texts":[15]},{"name":"presser","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/EmbarkStudios/presser","texts":[23]},{"name":"proc-macro-crate","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bkchr/proc-macro-crate","texts":[28]},{"name":"proc-macro2","version":"1.0.107","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/proc-macro2","texts":[40]},{"name":"profiling","version":"1.0.18","license":"MIT OR Apache-2.0","repository":"https://github.com/aclysma/profiling","texts":[40]},{"name":"pulldown-cmark","version":"0.13.6","license":"MIT","repository":"https://github.com/raphlinus/pulldown-cmark","texts":[95]},{"name":"pulley-interpreter","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley","texts":[40]},{"name":"pulley-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley/macros","texts":[40]},{"name":"pxfm","version":"0.1.30","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/pxfm","texts":[7]},{"name":"quick-error","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"http://github.com/tailhook/quick-error","texts":[10]},{"name":"quick-xml","version":"0.41.0","license":"MIT","repository":"https://github.com/tafia/quick-xml","texts":[112]},{"name":"quote","version":"1.0.47","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/quote","texts":[40]},{"name":"rand","version":"0.10.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_chacha","version":"0.9.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_core","version":"0.10.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand_core","texts":[26]},{"name":"rand_core","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[26]},{"name":"range-alloc","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/range-alloc","texts":[40]},{"name":"raw-window-handle","version":"0.6.2","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/raw-window-handle","texts":[40]},{"name":"rayon","version":"1.12.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"rayon-core","version":"1.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"read-fonts","version":"0.41.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"regalloc2","version":"0.15.2","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/regalloc2","texts":[4]},{"name":"regex-lite","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/regex","texts":[21]},{"name":"renderdoc-sys","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/ebkalderon/renderdoc-rs","texts":[21]},{"name":"resvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"rfd","version":"0.15.4","license":"MIT","repository":"https://github.com/PolyMeilex/rfd","texts":[87]},{"name":"rgb","version":"0.8.53","license":"MIT","repository":"https://github.com/kornelski/rust-rgb","texts":[82]},{"name":"rodio","version":"0.23.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/rodio","texts":[40]},{"name":"rowan","version":"0.17.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/rowan","texts":[21]},{"name":"roxmltree","version":"0.21.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/roxmltree","texts":[21]},{"name":"rspolib","version":"0.1.2","license":"MIT","repository":"https://github.com/mondeja/rspolib","texts":[89]},{"name":"rusqlite","version":"0.41.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[54]},{"name":"rustc-hash","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang-nursery/rustc-hash","texts":[21]},{"name":"rustc-hash","version":"2.1.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang/rustc-hash","texts":[40]},{"name":"rustc_version","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/rustc-version-rs","texts":[21]},{"name":"rustix","version":"0.38.44","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix","version":"1.1.6","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix-linux-procfs","version":"0.1.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/rustix-linux-procfs","texts":[4,21]},{"name":"rustversion","version":"1.0.23","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/rustversion","texts":[40]},{"name":"safe_arch","version":"0.7.4","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/safe_arch","texts":[39]},{"name":"scoped-tls","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/alexcrichton/scoped-tls","texts":[21]},{"name":"scoped-tls-hkt","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/scoped-tls-hkt","texts":[21]},{"name":"scopeguard","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/scopeguard","texts":[21]},{"name":"sctk-adwaita","version":"0.10.1","license":"MIT","repository":"https://github.com/PolyMeilex/sctk-adwaita","texts":[87]},{"name":"semver","version":"1.0.28","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/semver","texts":[40]},{"name":"serde","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_core","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_derive","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_json","version":"1.0.154","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/json","texts":[40]},{"name":"serde_repr","version":"0.1.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/serde-repr","texts":[40]},{"name":"serde_spanned","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"sha1","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"sha2","version":"0.10.9","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"shlex","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/comex/rust-shlex","texts":[40]},{"name":"signal-hook-registry","version":"1.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/vorner/signal-hook","texts":[21]},{"name":"simd-adler32","version":"0.3.10","license":"MIT","repository":"https://github.com/mcountryman/simd-adler32","texts":[91]},{"name":"simdutf8","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rusticstuff/simdutf8","texts":[40]},{"name":"simplecss","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/simplecss","texts":[21]},{"name":"siphasher","version":"1.0.4","license":"MIT OR Apache-2.0","repository":"https://github.com/jedisct1/rust-siphash","texts":[3]},{"name":"skrifa","version":"0.44.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"slab","version":"0.4.12","license":"MIT","repository":"https://github.com/tokio-rs/slab","texts":[64]},{"name":"slint","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"slint-build","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"slint-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"slotmap","version":"1.1.1","license":"Zlib","repository":"https://github.com/orlp/slotmap","texts":[118]},{"name":"smallvec","version":"1.16.5","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-smallvec","texts":[21]},{"name":"smithay-client-toolkit","version":"0.19.2","license":"MIT","repository":"https://github.com/smithay/client-toolkit","texts":[62]},{"name":"smol_str","version":"0.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/smol_str","texts":[21]},{"name":"smol_str","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/rust-analyzer/tree/master/lib/smol_str","texts":[21]},{"name":"snafu","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"snafu-derive","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"socket2","version":"0.6.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/socket2","texts":[21]},{"name":"softbuffer","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-windowing/softbuffer","texts":[36]},{"name":"spin_on","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"","texts":[21]},{"name":"spirv","version":"0.4.0+sdk-1.4.341.0","license":"Apache-2.0","repository":"https://github.com/gfx-rs/rspirv","texts":[40]},{"name":"stable_deref_trait","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/storyyeller/stable_deref_trait","texts":[21]},{"name":"static_assertions","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nvzqz/static-assertions-rs","texts":[3]},{"name":"strict-num","version":"0.1.1","license":"MIT","repository":"https://github.com/RazrFalcon/strict-num","texts":[69]},{"name":"strsim","version":"0.11.1","license":"MIT","repository":"https://github.com/rapidfuzz/strsim-rs","texts":[101]},{"name":"strum","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[83]},{"name":"strum_macros","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[83]},{"name":"svgtypes","version":"0.16.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/svgtypes","texts":[21]},{"name":"swash","version":"0.2.10","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/swash","texts":[21]},{"name":"symphonia","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"symphonia-bundle-mp3","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"symphonia-core","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"symphonia-metadata","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"syn","version":"2.0.119","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"syn","version":"3.0.10","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"synstructure","version":"0.14.0","license":"MIT","repository":"https://github.com/mystor/synstructure","texts":[75]},{"name":"sys-locale","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/sys-locale","texts":[8]},{"name":"taffy","version":"0.10.1","license":"MIT","repository":"https://github.com/DioxusLabs/taffy","texts":[89]},{"name":"target-lexicon","version":"0.13.5","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/target-lexicon","texts":[4]},{"name":"tempfile","version":"3.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Stebalien/tempfile","texts":[21]},{"name":"termcolor","version":"1.4.1","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/termcolor","texts":[100]},{"name":"test-log","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-core","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-macros","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"texpresso","version":"2.0.2","license":"MIT","repository":"https://github.com/jansol/texpresso","texts":[52,78]},{"name":"text-size","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/text-size","texts":[21]},{"name":"texture2ddecoder","version":"0.1.2","license":"MIT OR Apache-2.0","repository":"https://github.com/UniversalGameExtraction/texture2ddecoder","texts":[40]},{"name":"thiserror","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"tiny-skia","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia","texts":[44]},{"name":"tiny-skia","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia","texts":[44]},{"name":"tiny-skia-path","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia/tree/master/path","texts":[44]},{"name":"tiny-skia-path","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia/tree/master/path","texts":[44]},{"name":"tiny-xlib","version":"0.2.5","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/tiny-xlib","texts":[40]},{"name":"tinystr","version":"0.8.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"tinyvec","version":"1.13.3","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/tinyvec","texts":[3]},{"name":"tokio","version":"1.54.1","license":"MIT","repository":"https://github.com/tokio-rs/tokio","texts":[90]},{"name":"toml","version":"1.2.1+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_datetime","version":"1.1.3+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_edit","version":"0.25.19+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_parser","version":"1.1.5+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_writer","version":"1.2.0+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"tracing","version":"0.1.44","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[65]},{"name":"tracing-attributes","version":"0.1.31","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[65]},{"name":"tracing-core","version":"0.1.36","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[65,96]},{"name":"tree_magic_mini","version":"3.2.2","license":"MIT","repository":"https://github.com/mbrubeck/tree_magic/","texts":[79]},{"name":"ttf-parser","version":"0.25.1","license":"MIT OR Apache-2.0","repository":"https://github.com/harfbuzz/ttf-parser","texts":[21]},{"name":"typed-index-collections","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/zheland/typed-index-collections","texts":[40]},{"name":"typed-path","version":"0.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/chipsenkbeil/typed-path","texts":[40]},{"name":"typenum","version":"1.20.1","license":"MIT OR Apache-2.0","repository":"https://github.com/paholg/typenum","texts":[13]},{"name":"uds_windows","version":"1.2.1","license":"MIT","repository":"https://github.com/haraldh/rust_uds_windows","texts":[50]},{"name":"unicase","version":"2.10.0","license":"MIT OR Apache-2.0","repository":"https://github.com/seanmonstar/unicase","texts":[21]},{"name":"unicode-bidi","version":"0.3.18","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/unicode-bidi","texts":[21]},{"name":"unicode-ident","version":"1.0.27","license":"(MIT OR Apache-2.0) AND Unicode-3.0","repository":"https://github.com/dtolnay/unicode-ident","texts":[40,116]},{"name":"unicode-linebreak","version":"0.1.5","license":"Apache-2.0","repository":"https://github.com/axelf4/unicode-linebreak","texts":[8]},{"name":"unicode-script","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-script","texts":[29]},{"name":"unicode-segmentation","version":"1.13.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-segmentation","texts":[21]},{"name":"unicode-vo","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/unicode-vo","texts":[21]},{"name":"unicode-width","version":"0.2.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-width","texts":[21]},{"name":"unicode-xid","version":"0.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-xid","texts":[21]},{"name":"url","version":"2.5.8","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"urlencoding","version":"2.1.3","license":"MIT","repository":"https://github.com/kornelski/rust_urlencoding","texts":[113]},{"name":"usvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"utf8_iter","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf8_iter","texts":[3]},{"name":"utf8parse","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/alacritty/vte","texts":[40]},{"name":"utf_types","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf_types","texts":[3]},{"name":"uuid","version":"1.29.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/uuid-rs/uuid","texts":[21]},{"name":"vcpkg","version":"0.2.15","license":"MIT OR Apache-2.0","repository":"https://github.com/mcgoo/vcpkg-rs","texts":[30]},{"name":"version_check","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/SergioBenitez/version_check","texts":[21]},{"name":"vtable","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"vtable-macro","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"wasm-encoder","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder","texts":[4,21]},{"name":"wasm-metadata","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata","texts":[4,21]},{"name":"wasmparser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser","texts":[4,21]},{"name":"wasmprinter","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmprinter","texts":[4,21]},{"name":"wasmtime","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-environ","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-component-macro","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-component-util","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-core","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"wasmtime-internal-cranelift","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-fiber","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-jit-icache-coherence","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-unwinder","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-versioned-export-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-wit-bindgen","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-wasi","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-wasi-io","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wayland-backend","version":"0.3.17","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-client","version":"0.31.15","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-csd-frame","version":"0.3.0","license":"MIT","repository":"https://github.com/rust-windowing/wayland-csd-frame","texts":[71]},{"name":"wayland-cursor","version":"0.31.14","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-protocols","version":"0.32.13","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57,76]},{"name":"wayland-protocols-plasma","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57,92]},{"name":"wayland-protocols-wlr","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-scanner","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-sys","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"webbrowser","version":"1.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/amodm/webbrowser-rs","texts":[25]},{"name":"weezl","version":"0.1.12","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/weezl","texts":[20]},{"name":"wgpu","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core-deps-windows-linux-android","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-hal","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-naga-bridge","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wide","version":"0.7.33","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/wide","texts":[40]},{"name":"winapi-util","version":"0.1.11","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/winapi-util","texts":[104]},{"name":"windows","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-collections","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-core","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-future","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-implement","version":"0.60.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-interface","version":"0.59.3","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-link","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-numerics","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-result","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-strings","version":"0.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.52.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.59.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.61.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-targets","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-threading","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_gnu","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_msvc","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"winit","version":"0.30.13","license":"Apache-2.0","repository":"https://github.com/rust-windowing/winit","texts":[37]},{"name":"winnow","version":"1.0.5","license":"MIT","repository":"https://github.com/winnow-rs/winnow","texts":[94]},{"name":"winresource","version":"0.1.34","license":"MIT","repository":"https://github.com/BenjaminRi/winresource","texts":[74]},{"name":"wit-component","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component","texts":[4,21]},{"name":"wit-parser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser","texts":[4,21]},{"name":"wl-clipboard-rs","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/YaLTeR/wl-clipboard-rs","texts":[21]},{"name":"writeable","version":"0.6.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"x11-dl","version":"2.21.0","license":"MIT","repository":"https://github.com/AltF02/x11-rs.git","texts":[93]},{"name":"x11rb","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"x11rb-protocol","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"xcursor","version":"0.3.11","license":"MIT","repository":"https://github.com/esposm03/xcursor-rs","texts":[86]},{"name":"xkbcommon-dl","version":"0.4.2","license":"MIT","repository":"https://github.com/rust-windowing/xkbcommon-dl","texts":[107]},{"name":"xkeysym","version":"0.2.1","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/notgull/xkeysym","texts":[1]},{"name":"xml-rs","version":"0.8.29","license":"MIT","repository":"https://github.com/kornelski/xml-rs","texts":[97]},{"name":"xmlwriter","version":"0.1.0","license":"MIT","repository":"https://github.com/RazrFalcon/xmlwriter","texts":[105]},{"name":"yazi","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/yazi","texts":[21]},{"name":"yeslogic-fontconfig-sys","version":"6.0.1","license":"MIT","repository":"https://github.com/yeslogic/fontconfig-rs","texts":[109]},{"name":"yoke","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"yoke-derive","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zbus","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zbus-lockstep","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[93]},{"name":"zbus-lockstep-macros","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[93]},{"name":"zbus_macros","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zbus_names","version":"4.3.5","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zbus_xml","version":"5.2.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zcheapstr","version":"1.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zcheapstr/","texts":[73]},{"name":"zeno","version":"0.3.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/zeno","texts":[21]},{"name":"zerocopy","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerocopy-derive","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerofrom","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zerofrom-derive","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zeroize","version":"1.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zeroize_derive","version":"1.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zerotrie","version":"0.2.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zerovec","version":"0.11.9","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zerovec-derive","version":"0.11.7","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zip","version":"9.5.0","license":"MIT","repository":"https://github.com/zip-rs/zip2","texts":[96]},{"name":"zmij","version":"1.0.23","license":"MIT","repository":"https://github.com/dtolnay/zmij","texts":[93]},{"name":"zune-core","version":"0.5.3","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image","texts":[8]},{"name":"zune-jpeg","version":"0.5.15","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpeg","texts":[8]},{"name":"zvariant","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zvariant_derive","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zvariant_utils","version":"4.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[93]}],"licenses":[{"id":"0BSD","name":"BSD Zero Clause License","text":"Copyright (C) Jonas Schievink \n\nPermission to use, copy, modify, and/or distribute this software for\nany purpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN\nAN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT\nOF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022-2023 John Nunley\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\n--- LLVM Exceptions to the Apache 2.0 License ----\n\nAs an exception, if, as a result of your compiling your source code, portions\nof this Software are embedded into an Object form of such source code, you\nmay redistribute such embedded portions in such Object form without complying\nwith the conditions of Sections 4(a), 4(b) and 4(d) of the License.\n\nIn addition, if you combine or link compiled forms of this Software with\nsoftware that is licensed under the GPLv2 (\"Combined Software\") and if a\ncourt of competent jurisdiction determines that the patent provision (Section\n3), the indemnity provision (Section 9) or other Section of the License\nconflicts with the conditions of the GPLv2, you may retroactively and\nprospectively choose to deem waived or otherwise exclude such Section(s) of\nthe License, but only in their entirety and only with respect to the Combined\nSoftware.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) Microsoft Corporation.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 The Fuchsia Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2024 Radzivon Bartoshyk\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright Individual contributors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n Copyright 2020 Yoshua Wuyts\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright (c) 2016 Alex Crichton\nCopyright (c) 2017 The Tokio Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2014 Paho Lurie-Gregg\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2018 The pin-utils authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019 The CryptoCorrosion Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019- Jake Goulding\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2020 Andrew Straw\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 Traverse Research B.V.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [2015] [Dan Burkert]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright (c) 2015-2022 Amod Malviya\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/LICENSE-2.0\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 The Unicode-rs Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2019 Fontations Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright 2017-2023 Maik Klein, Maja KΔ…dzioΕ‚ka\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright [2017] [Maik Klein]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2016 Maik Klein\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Rust-chrono is dual-licensed under The MIT License [1] and\nApache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and\ncontributors.\n\nNota Bene: This is same as the Rust Project's own license.\n\n\n[1]: , which is reproduced below:\n\n~~~~\nThe MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n~~~~\n\n\n[2]: , which is reproduced below:\n\n~~~~\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n~~~~\n\n"},{"id":"BSD-2-Clause","name":"BSD 2-Clause \"Simplified\" License","text":"Copyright (c) 2015 David Roundy \nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the\n distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"// Copyright Β© WHATWG (Apple, Google, Mozilla, Microsoft).\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// 3. Neither the name of the copyright holder nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n/// The PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_PUA: [u16; 18] = [\n 0xE78D, 0xE78E, 0xE78F, 0xE790, 0xE791, 0xE792, 0xE793, 0xE794, 0xE795, 0xE796, 0xE81E, 0xE826,\n 0xE82B, 0xE82C, 0xE832, 0xE843, 0xE854, 0xE864,\n];\n\n/// The bytes corresponding to the PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_BYTES: [[u8; 2]; 18] = [\n [0xA6, 0xD9],\n [0xA6, 0xDA],\n [0xA6, 0xDB],\n [0xA6, 0xDC],\n [0xA6, 0xDD],\n [0xA6, 0xDE],\n [0xA6, 0xDF],\n [0xA6, 0xEC],\n [0xA6, 0xED],\n [0xA6, 0xF3],\n [0xFE, 0x59],\n [0xFE, 0x61],\n [0xFE, 0x66],\n [0xFE, 0x67],\n [0xFE, 0x6D],\n [0xFE, 0x7E],\n [0xFE, 0x90],\n [0xFE, 0xA0],\n];\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright (c) 2011 Google Inc. All rights reserved.\nCopyright (c) 2020 Yevhenii Reizner All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\n * Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived\n from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright Β© WHATWG (Apple, Google, Mozilla, Microsoft).\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization\nobtaining a copy of the software and accompanying documentation covered by\nthis license (the \"Software\") to use, reproduce, display, distribute,\nexecute, and transmit the Software, and to prepare derivative works of the\nSoftware, and to permit third-parties to whom the Software is furnished to\ndo so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including\nthe above license grant, this restriction and the following disclaimer,\nmust be included in all copies of the Software, in whole or in part, and\nall derivative works of the Software, unless such copies or derivative\nworks are solely in the form of machine-executable object code generated by\na source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT\nSHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE\nFOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the \"Software\") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"GPL-3.0-only","name":"GNU General Public License v3.0 only","text":"GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright Β© 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\nβ€œThis License” refers to version 3 of the GNU General Public License.\n\nβ€œCopyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\nβ€œThe Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as β€œyou”. β€œLicensees” and β€œrecipients” may be individuals or organizations.\n\nTo β€œmodify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a β€œmodified version” of the earlier work or a work β€œbased on” the earlier work.\n\nA β€œcovered work” means either the unmodified Program or a work based on the Program.\n\nTo β€œpropagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo β€œconvey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays β€œAppropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe β€œsource code” for a work means the preferred form of the work for making modifications to it. β€œObject code” means any non-source form of a work.\n\nA β€œStandard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe β€œSystem Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A β€œMajor Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe β€œCorresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to β€œkeep intact all notices”.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an β€œaggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA β€œUser Product” is either (1) a β€œconsumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, β€œnormally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\nβ€œInstallation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\nβ€œAdditional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered β€œfurther restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn β€œentity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA β€œcontributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's β€œcontributor version”.\n\nA contributor's β€œessential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, β€œcontrol” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a β€œpatent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To β€œgrant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. β€œKnowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is β€œdiscriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License β€œor any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM β€œAS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the β€œcopyright” line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an β€œabout box”.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a β€œcopyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n"},{"id":"ISC","name":"ISC License","text":"Copyright Β© 2015, Simonas Kazlauskas\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without\nfee is hereby granted, provided that the above copyright notice and this permission notice appear\nin all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS\nSOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\nAUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\nNEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":" MIT License\n\n Copyright (c) Microsoft Corporation. All rights reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n"},{"id":"MIT","name":"MIT License","text":"# 3rd Party Notices\n\nThe `cfg_aliases!` macro uses a lot of the code from [`tectonic_cfg_support::target_cfg!`] macro which is under the following license:\n\n[`tectonic_cfg_support::target_cfg!`]: https://github.com/tectonic-typesetting/tectonic/blob/f2439b936470ad27bdf92882064bc4702ee01899/cfg_support/src/lib.rs#L166\n\n tectonic_cfg_support is licensed under the MIT License.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the β€œSoftware”), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n---\n"},{"id":"MIT","name":"MIT License","text":"// Copyright (c) 2006 Simon Brown \n// Copyright (c) 2018-2021 Jan Solanti \n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to\tdeal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmod cluster;\nmod range;\nmod single;\nmod single_lut;\n\npub use self::cluster::ClusterFit;\npub use self::range::RangeFit;\npub use self::single::SingleColourFit;\n\npub trait ColourFit<'a> {\n fn compress(&'a mut self, block: &mut [u8]);\n}\n\npub trait ColourFitImpl<'a> {\n fn is_bc1(&self) -> bool;\n fn is_transparent(&self) -> bool;\n fn compress3(&mut self);\n fn compress4(&mut self);\n fn best_compressed(&'a self) -> &'a [u8];\n}\n\nimpl<'a, T> ColourFit<'a> for T\nwhere\n T: ColourFitImpl<'a>,\n{\n fn compress(&'a mut self, block: &mut [u8]) {\n if self.is_bc1() {\n self.compress3();\n if !self.is_transparent() {\n self.compress4();\n }\n } else {\n self.compress4();\n }\n\n block.copy_from_slice(self.best_compressed());\n }\n}\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 Carl Lerche and other MIO contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 The rusqlite developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2019 Geoffroy Couprie\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2020 Optimal Computing (NZ) Ltd\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Elinor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Jonathan Reem\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2017 Gilad Naaman\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Tokio Contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Olivier Goffart \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Γ‰lie ROUDNINSKI (marmeladema) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2022 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2024 Zeeshan Ali Khan & zbus contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2026 Zeeshan Ali Khan & zcheapstr contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Max Resch\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Nika Layzell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright Β© 2008-2013 Kristian HΓΈgsberg\nCopyright Β© 2010-2013 Intel Corporation\nCopyright Β© 2013 Rafael Antognolli\nCopyright Β© 2013 Jasper St. Pierre\nCopyright Β© 2014 Jonas Γ…dahl\nCopyright Β© 2014 Jason Ekstrand\nCopyright Β© 2014-2015 Collabora, Ltd.\nCopyright Β© 2015 Red Hat Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n---\n\nThe above is the version of the MIT \"Expat\" License used by X.org:\n\n http://cgit.freedesktop.org/xorg/xserver/tree/COPYING\n"},{"id":"MIT","name":"MIT License","text":"Copyright Β© 2022 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the β€œSoftware”), to deal\nin the Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2006 Simon Brown \nCopyright (c) 2018-2021 Jan Solanti \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Aaron Hancock\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Maiddog\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2018 diwic\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Kornel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Peter Glotfelty\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Bilal Elmoussaoui\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Katharos Technology\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Samuele Esposito\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2022 BartΕ‚omiej MaryΕ„czak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2025 rutrum\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO\nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) Tokio Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) [2021] [Marvin Countryman]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License Copyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS\nOR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\nOR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License\n\nCopyright 2015 Google Inc. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Mathijs van de Nes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Vladimir Matveev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014-2022 Steven Fackler, Yuki Okushi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Danny Guo\nCopyright (c) 2016 Titus Wormer \nCopyright (c) 2018 Akash Kurdekar\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Jelte Fennema\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 PistonDevelopers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2017 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2019 Reizner Evgeniy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) HarfBuzz developers\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright 2019 YesLogic Pty. Ltd.\nCopyright 2016 Manuel Reinhardt\nCopyright 2014 Austin Bonander\nCopyright 2013 The Servo Project Developers.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 BartΕ‚omiej KamiΕ„ski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Johann Tuffe\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Β© 2016 Bertram Truong\nΒ© 2021 Kornel LesiΕ„ski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0."},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright Β© 1991-2023 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright Β© 2020-2024 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n\nSPDX-License-Identifier: Unicode-3.0\n\nβ€”\n\nPortions of ICU4X may have been adapted from ICU4C and/or ICU4J.\nICU 1.8.1 to ICU 57.1 Β© 1995-2016 International Business Machines Corporation and others.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2021 Orson Peters \n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n 3. This notice may not be removed or altered from any source distribution.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2024 Orson Peters\n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n3. This notice may not be removed or altered from any source distribution."}]} +{"crates":[{"name":"ab_glyph","version":"0.2.32","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"ab_glyph_rasterizer","version":"0.1.10","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"accesskit","version":"0.24.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_atspi_common","version":"0.19.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_consumer","version":"0.38.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_unix","version":"0.22.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_windows","version":"0.34.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_winit","version":"0.33.2","license":"Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"adler2","version":"2.0.1","license":"0BSD OR MIT OR Apache-2.0","repository":"https://github.com/oyvindln/adler2","texts":[0]},{"name":"aes","version":"0.8.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/block-ciphers","texts":[24]},{"name":"ahash","version":"0.8.12","license":"MIT OR Apache-2.0","repository":"https://github.com/tkaitchuck/ahash","texts":[21]},{"name":"allocator-api2","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/zakarumych/allocator-api2","texts":[40]},{"name":"alsa","version":"0.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/diwic/alsa-rs","texts":[40]},{"name":"alsa-sys","version":"0.4.0","license":"MIT","repository":"https://github.com/diwic/alsa-sys","texts":[82]},{"name":"annotate-snippets","version":"0.12.17","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/annotate-snippets-rs","texts":[9]},{"name":"anstream","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle","version":"1.0.14","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-parse","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-query","version":"1.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-wincon","version":"3.0.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anyhow","version":"1.0.104","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/anyhow","texts":[40]},{"name":"arbitrary","version":"1.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-fuzz/arbitrary/","texts":[21]},{"name":"arboard","version":"3.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/arboard","texts":[40]},{"name":"arrayref","version":"0.3.9","license":"BSD-2-Clause","repository":"https://github.com/droundy/arrayref","texts":[42]},{"name":"arrayvec","version":"0.7.8","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/arrayvec","texts":[21]},{"name":"as-raw-xcb-connection","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/as-raw-xcb-connection","texts":[3]},{"name":"ash","version":"0.38.0+1.3.281","license":"MIT OR Apache-2.0","repository":"https://github.com/ash-rs/ash","texts":[34]},{"name":"ashpd","version":"0.11.1","license":"MIT","repository":"https://github.com/bilelmoussaoui/ashpd","texts":[85]},{"name":"async-broadcast","version":"0.7.2","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/async-broadcast","texts":[11]},{"name":"async-channel","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-channel","texts":[21]},{"name":"async-executor","version":"1.14.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-executor","texts":[21]},{"name":"async-fs","version":"2.2.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-fs","texts":[21]},{"name":"async-io","version":"2.6.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-io","texts":[21]},{"name":"async-lock","version":"3.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-lock","texts":[21]},{"name":"async-net","version":"2.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-net","texts":[21]},{"name":"async-process","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-process","texts":[21]},{"name":"async-recursion","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dcchut/async-recursion","texts":[20]},{"name":"async-signal","version":"0.2.14","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-signal","texts":[21]},{"name":"async-task","version":"4.7.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-task","texts":[21]},{"name":"async-trait","version":"0.1.92","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/async-trait","texts":[40]},{"name":"atomic-waker","version":"1.1.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/atomic-waker","texts":[21]},{"name":"atspi","version":"0.29.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-common","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-proxies","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"autocfg","version":"1.5.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/cuviper/autocfg","texts":[21]},{"name":"base64","version":"0.23.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marshallpierce/rust-base64","texts":[21]},{"name":"bit-set","version":"0.10.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-set","texts":[23]},{"name":"bit-vec","version":"0.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-vec","texts":[23]},{"name":"bitflags","version":"2.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/bitflags/bitflags","texts":[21]},{"name":"block-buffer","version":"0.10.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"blocking","version":"1.7.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/blocking","texts":[21]},{"name":"bumpalo","version":"3.20.3","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/bumpalo","texts":[21]},{"name":"by_address","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/mbrubeck/by_address","texts":[21]},{"name":"bytemuck","version":"1.25.2","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"bytemuck_derive","version":"1.12.1","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"byteorder","version":"1.5.0","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/byteorder","texts":[101]},{"name":"byteorder-lite","version":"0.1.0","license":"Unlicense OR MIT","repository":"https://github.com/image-rs/byteorder-lite","texts":[101]},{"name":"bytes","version":"1.12.1","license":"MIT","repository":"https://github.com/tokio-rs/bytes","texts":[62]},{"name":"calloop","version":"0.13.0","license":"MIT","repository":"https://github.com/Smithay/calloop","texts":[64]},{"name":"calloop-wayland-source","version":"0.3.0","license":"MIT","repository":"https://github.com/smithay/calloop-wayland-source","texts":[71]},{"name":"cc","version":"1.11.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"cfg-if","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cfg-if","texts":[21]},{"name":"cfg_aliases","version":"0.2.2","license":"MIT","repository":"https://github.com/katharostech/cfg_aliases","texts":[52,86]},{"name":"chacha20","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/stream-ciphers","texts":[24]},{"name":"chrono","version":"0.4.45","license":"MIT OR Apache-2.0","repository":"https://github.com/chronotope/chrono","texts":[41]},{"name":"cipher","version":"0.4.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"clap","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_builder","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_derive","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_lex","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clipboard-win","version":"5.4.3","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/clipboard-win","texts":[48]},{"name":"clru","version":"0.6.3","license":"MIT","repository":"https://github.com/marmeladema/clru-rs","texts":[69]},{"name":"cobs","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/cobs.rs","texts":[10]},{"name":"codespan-reporting","version":"0.13.1","license":"Apache-2.0","repository":"https://github.com/brendanzab/codespan","texts":[8]},{"name":"color_quant","version":"1.1.0","license":"MIT","repository":"https://github.com/image-rs/color_quant.git","texts":[104]},{"name":"colorchoice","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"concurrent-queue","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/concurrent-queue","texts":[21]},{"name":"const-field-offset","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"const-field-offset-macro","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"constant_time_eq","version":"0.6.1","license":"CC0-1.0 OR MIT-0 OR Apache-2.0","repository":"https://codeberg.org/cesarb/constant_time_eq","texts":[40]},{"name":"convert_case","version":"0.10.0","license":"MIT","repository":"https://github.com/rutrum/convert-case","texts":[89]},{"name":"core_detect","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/thomcc/core_detect","texts":[20]},{"name":"countme","version":"3.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/countme","texts":[21]},{"name":"cpal","version":"0.18.2","license":"Apache-2.0","repository":"https://github.com/RustAudio/cpal","texts":[8]},{"name":"cpufeatures","version":"0.2.17","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cpufeatures","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cranelift-assembler-x64","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-assembler-x64-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-bforest","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-bitset","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"cranelift-codegen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-shared","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-control","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-entity","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-frontend","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-isle","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/isle","texts":[40]},{"name":"cranelift-native","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-srcgen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"crc32fast","version":"1.5.5","license":"MIT OR Apache-2.0","repository":"https://github.com/srijs/rust-crc32fast","texts":[10]},{"name":"critical-section","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-embedded/critical-section","texts":[21]},{"name":"crossbeam-channel","version":"0.5.17","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-deque","version":"0.8.8","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-epoch","version":"0.9.21","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-utils","version":"0.8.23","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crypto-common","version":"0.1.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"ctor","version":"0.10.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/mmastrac/rust-ctor","texts":[38]},{"name":"cursor-icon","version":"1.2.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/cursor-icon","texts":[2]},{"name":"dasp_sample","version":"0.11.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rustaudio/sample.git","texts":[40]},{"name":"data-url","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"derive_more","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[103]},{"name":"derive_more-impl","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[103]},{"name":"digest","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"dirs","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/soc/dirs-rs","texts":[40]},{"name":"dirs-sys","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dirs-dev/dirs-sys-rs","texts":[40]},{"name":"displaydoc","version":"0.2.7","license":"MIT OR Apache-2.0","repository":"https://github.com/yaahc/displaydoc","texts":[21]},{"name":"dlib","version":"0.5.3","license":"MIT","repository":"https://github.com/elinorbgr/dlib","texts":[60]},{"name":"document-features","version":"0.2.12","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/document-features","texts":[40]},{"name":"downcast-rs","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marcianx/downcast-rs","texts":[23]},{"name":"dpi","version":"0.1.2","license":"Apache-2.0 AND MIT","repository":"https://github.com/rust-windowing/winit","texts":[37,90]},{"name":"either","version":"1.19.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/either","texts":[21]},{"name":"encoding_rs","version":"0.8.44","license":"(Apache-2.0 OR MIT) AND BSD-3-Clause","repository":"https://github.com/hsivonen/encoding_rs","texts":[3,44,46]},{"name":"endi","version":"1.1.1","license":"MIT","repository":"https://github.com/zeenix/endi","texts":[94]},{"name":"enumflags2","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[32]},{"name":"enumflags2_derive","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[33]},{"name":"env_filter","version":"2.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"env_logger","version":"0.11.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"equivalent","version":"1.0.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/equivalent","texts":[21]},{"name":"errno","version":"0.3.14","license":"MIT OR Apache-2.0","repository":"https://github.com/lambda-fairy/rust-errno","texts":[21]},{"name":"error-code","version":"3.4.0","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/error-code","texts":[47]},{"name":"euclid","version":"0.22.14","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/euclid","texts":[21]},{"name":"event-listener","version":"5.4.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener","texts":[21]},{"name":"event-listener-strategy","version":"0.5.4","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener-strategy","texts":[21]},{"name":"fallible-iterator","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/rust-fallible-iterator","texts":[10]},{"name":"fallible-streaming-iterator","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/fallible-streaming-iterator","texts":[10]},{"name":"fastrand","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/fastrand","texts":[21]},{"name":"fdeflate","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/fdeflate","texts":[40]},{"name":"femtovg","version":"0.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/femtovg/femtovg","texts":[40]},{"name":"field-offset","version":"0.3.6","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/rust-field-offset","texts":[40]},{"name":"find-msvc-tools","version":"0.1.15","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"fixed_decimal","version":"0.7.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"fixedbitset","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/fixedbitset","texts":[21]},{"name":"flate2","version":"1.1.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/flate2-rs","texts":[21]},{"name":"float-cmp","version":"0.9.0","license":"MIT","repository":"https://github.com/mikedilger/float-cmp","texts":[57]},{"name":"fnv","version":"1.0.7","license":"Apache-2.0 OR MIT","repository":"https://github.com/servo/rust-fnv","texts":[21]},{"name":"foldhash","version":"0.1.5","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[120]},{"name":"foldhash","version":"0.2.0","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[120]},{"name":"font-types","version":"0.12.7","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"fontdb","version":"0.24.0","license":"MIT","repository":"https://github.com/RazrFalcon/fontdb","texts":[107]},{"name":"fontique","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"form_urlencoded","version":"1.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"futures","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-channel","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-core","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-executor","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-io","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-lite","version":"2.6.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/futures-lite","texts":[21]},{"name":"futures-macro","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-sink","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-task","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-util","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"generic-array","version":"0.14.7","license":"MIT","repository":"https://github.com/fizyk20/generic-array.git","texts":[112]},{"name":"gethostname","version":"1.1.0","license":"Apache-2.0","repository":"https://codeberg.org/swsnr/gethostname.rs.git","texts":[21]},{"name":"getrandom","version":"0.3.4","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"getrandom","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"gif","version":"0.14.2","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-gif","texts":[20]},{"name":"gimli","version":"0.33.0","license":"MIT OR Apache-2.0","repository":"https://github.com/gimli-rs/gimli","texts":[21]},{"name":"gl_generator","version":"0.14.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"glow","version":"0.17.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glow","version":"0.18.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glutin","version":"0.32.3","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin-winit","version":"0.5.0","license":"MIT","repository":"https://github.com/rust-windowing/glutin","texts":[78]},{"name":"glutin_egl_sys","version":"0.7.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_glx_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_wgl_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"gpu-allocator","version":"0.28.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Traverse-Research/gpu-allocator","texts":[18]},{"name":"half","version":"2.7.1","license":"MIT OR Apache-2.0","repository":"https://github.com/VoidStarKat/half-rs","texts":[40]},{"name":"harfrust","version":"0.12.0","license":"MIT","repository":"https://github.com/harfbuzz/harfrust","texts":[109]},{"name":"hashbrown","version":"0.14.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.15.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.16.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.17.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashlink","version":"0.12.2","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/hashlink","texts":[22]},{"name":"heck","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/withoutboats/heck","texts":[21]},{"name":"hex","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/KokaKiwi/rust-hex","texts":[10]},{"name":"htmlparser","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/jdrouet/htmlparser.git","texts":[21]},{"name":"i-slint-backend-selector","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-backend-winit","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-common","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-compiler","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-core","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-core-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-renderer-femtovg","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-renderer-software","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"iana-time-zone","version":"0.1.65","license":"MIT OR Apache-2.0","repository":"https://github.com/strawlab/iana-time-zone","texts":[17]},{"name":"icu_collections","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_decimal","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_decimal_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_locale_core","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_locale_fallback","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_locale_fallback_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_normalizer","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_normalizer_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_properties","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_properties_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_provider","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_segmenter","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_segmenter_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"id-arena","version":"2.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/id-arena","texts":[21]},{"name":"idna","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"idna_adapter","version":"1.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/idna_adapter","texts":[21]},{"name":"image","version":"0.25.10","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image","texts":[40]},{"name":"image-webp","version":"0.2.4","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-webp","texts":[40]},{"name":"imagesize","version":"0.15.0","license":"MIT","repository":"https://github.com/Roughsketch/imagesize","texts":[81]},{"name":"imgref","version":"1.12.3","license":"CC0-1.0 OR Apache-2.0","repository":"https://github.com/kornelski/imgref","texts":[8]},{"name":"indexmap","version":"2.14.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/indexmap","texts":[21]},{"name":"inout","version":"0.1.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"is_terminal_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/is_terminal_polyfill","texts":[10]},{"name":"itertools","version":"0.14.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itertools","version":"0.15.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itoa","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/itoa","texts":[40]},{"name":"keyboard-types","version":"0.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/pyfisch/keyboard-types","texts":[20]},{"name":"khronos-egl","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/timothee-haudebourg/khronos-egl","texts":[21]},{"name":"khronos_api","version":"3.1.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"kurbo","version":"0.13.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"lazy_static","version":"1.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang-nursery/lazy-static.rs","texts":[21]},{"name":"leb128fmt","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluk/leb128fmt","texts":[21]},{"name":"lewton","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/lewton","texts":[40]},{"name":"libc","version":"0.2.191","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/libc","texts":[40]},{"name":"libloading","version":"0.8.9","license":"ISC","repository":"https://github.com/nagisa/rust_libloading/","texts":[50]},{"name":"libm","version":"0.2.16","license":"MIT","repository":"https://github.com/rust-lang/compiler-builtins","texts":[90]},{"name":"libsqlite3-sys","version":"0.39.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[55]},{"name":"linebender_resource_handle","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/raw_resource_handle","texts":[40]},{"name":"linux-raw-sys","version":"0.12.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"linux-raw-sys","version":"0.4.15","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"litemap","version":"0.8.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"litrs","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/LukasKalbertodt/litrs","texts":[40]},{"name":"lock_api","version":"0.4.14","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"log","version":"0.4.35","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/log","texts":[21]},{"name":"lyon_algorithms","version":"1.0.22","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_extra","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_geom","version":"1.0.20","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_path","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"memchr","version":"2.8.3","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/memchr","texts":[101]},{"name":"memfd","version":"0.6.6","license":"MIT OR Apache-2.0","repository":"https://github.com/lucab/memfd-rs","texts":[8]},{"name":"memmap2","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/memmap2-rs","texts":[19]},{"name":"memoffset","version":"0.9.1","license":"MIT","repository":"https://github.com/Gilnaa/memoffset","texts":[61]},{"name":"miniz_oxide","version":"0.8.9","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"miniz_oxide","version":"0.9.1","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"mio","version":"1.2.4","license":"MIT","repository":"https://github.com/tokio-rs/mio","texts":[54]},{"name":"moxcms","version":"0.8.1","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/moxcms.git","texts":[7]},{"name":"muda","version":"0.19.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/tauri-apps/muda","texts":[21]},{"name":"multiversion_no_op","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/multiversion_no_op","texts":[3]},{"name":"naga","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"naga-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"natord","version":"1.0.9","license":"MIT","repository":"https://github.com/lifthrasiir/rust-natord","texts":[99]},{"name":"nom","version":"8.0.0","license":"MIT","repository":"https://github.com/rust-bakery/nom","texts":[56]},{"name":"num-bigint","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-bigint","texts":[21]},{"name":"num-complex","version":"0.4.6","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-complex","texts":[21]},{"name":"num-integer","version":"0.1.47","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-integer","texts":[21]},{"name":"num-rational","version":"0.4.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-rational","texts":[21]},{"name":"num-traits","version":"0.2.19","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-traits","texts":[21]},{"name":"num_enum","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"num_enum_derive","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"object","version":"0.40.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/gimli-rs/object","texts":[21]},{"name":"once_cell","version":"1.21.4","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/once_cell","texts":[21]},{"name":"once_cell_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/once_cell_polyfill","texts":[10]},{"name":"oozextract","version":"0.5.7","license":"MIT","repository":"https://github.com/lvlvllvlvllvlvl/oozextract","texts":[90]},{"name":"option-ext","version":"0.2.0","license":"MPL-2.0","repository":"https://github.com/soc/option-ext.git","texts":[116]},{"name":"opus-rs","version":"0.1.42","license":"BSD-3-Clause","repository":"https://github.com/restsend/opus-rs","texts":[43]},{"name":"ordered-float","version":"5.5.1","license":"MIT","repository":"https://github.com/reem/rust-ordered-float","texts":[59]},{"name":"ordered-stream","version":"0.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/danieldg/ordered-stream","texts":[21]},{"name":"os_pipe","version":"1.2.3","license":"MIT","repository":"https://github.com/oconnor663/os_pipe.rs","texts":[111]},{"name":"owned_ttf_parser","version":"0.25.1","license":"Apache-2.0","repository":"https://github.com/alexheretic/owned-ttf-parser","texts":[40]},{"name":"parking","version":"2.2.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/parking","texts":[21]},{"name":"parking_lot","version":"0.12.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parking_lot_core","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parlance","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley_data","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"paste","version":"1.0.15","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/paste","texts":[40]},{"name":"percent-encoding","version":"2.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"petgraph","version":"0.8.3","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/petgraph","texts":[21]},{"name":"phf","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"phf_generator","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"phf_macros","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"phf_shared","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"pico-args","version":"0.5.0","license":"MIT","repository":"https://github.com/RazrFalcon/pico-args","texts":[67]},{"name":"pin-project","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-internal","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-lite","version":"0.2.17","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project-lite","texts":[40]},{"name":"pin-utils","version":"0.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pin-utils","texts":[14]},{"name":"pin-weak","version":"1.1.0","license":"MIT","repository":"https://github.com/sixtyfpsui/pin-weak","texts":[68]},{"name":"piper","version":"0.2.5","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/piper","texts":[21]},{"name":"pkg-config","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pkg-config-rs","texts":[21]},{"name":"png","version":"0.18.1","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-png","texts":[21]},{"name":"polling","version":"3.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/polling","texts":[21]},{"name":"pollster","version":"0.4.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"pollster","version":"1.0.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"polycool","version":"0.4.0","license":"MIT OR Apache-2.0","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"portable-atomic","version":"1.15.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/portable-atomic","texts":[40]},{"name":"postcard","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/postcard","texts":[21]},{"name":"potential_utf","version":"0.1.6","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"ppv-lite86","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/cryptocorrosion/cryptocorrosion","texts":[15]},{"name":"presser","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/EmbarkStudios/presser","texts":[23]},{"name":"proc-macro-crate","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bkchr/proc-macro-crate","texts":[28]},{"name":"proc-macro2","version":"1.0.107","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/proc-macro2","texts":[40]},{"name":"profiling","version":"1.0.18","license":"MIT OR Apache-2.0","repository":"https://github.com/aclysma/profiling","texts":[40]},{"name":"pulldown-cmark","version":"0.13.6","license":"MIT","repository":"https://github.com/raphlinus/pulldown-cmark","texts":[96]},{"name":"pulley-interpreter","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley","texts":[40]},{"name":"pulley-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley/macros","texts":[40]},{"name":"pxfm","version":"0.1.30","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/pxfm","texts":[7]},{"name":"quick-error","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"http://github.com/tailhook/quick-error","texts":[10]},{"name":"quick-xml","version":"0.41.0","license":"MIT","repository":"https://github.com/tafia/quick-xml","texts":[113]},{"name":"quote","version":"1.0.47","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/quote","texts":[40]},{"name":"rand","version":"0.10.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_chacha","version":"0.9.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_core","version":"0.10.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand_core","texts":[26]},{"name":"rand_core","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[26]},{"name":"range-alloc","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/range-alloc","texts":[40]},{"name":"raw-window-handle","version":"0.6.2","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/raw-window-handle","texts":[40]},{"name":"rayon","version":"1.12.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"rayon-core","version":"1.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"read-fonts","version":"0.41.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"regalloc2","version":"0.15.2","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/regalloc2","texts":[4]},{"name":"regex-lite","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/regex","texts":[21]},{"name":"renderdoc-sys","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/ebkalderon/renderdoc-rs","texts":[21]},{"name":"resvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"rfd","version":"0.15.4","license":"MIT","repository":"https://github.com/PolyMeilex/rfd","texts":[88]},{"name":"rgb","version":"0.8.53","license":"MIT","repository":"https://github.com/kornelski/rust-rgb","texts":[83]},{"name":"rodio","version":"0.23.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/rodio","texts":[40]},{"name":"rowan","version":"0.17.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/rowan","texts":[21]},{"name":"roxmltree","version":"0.21.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/roxmltree","texts":[21]},{"name":"rspolib","version":"0.1.2","license":"MIT","repository":"https://github.com/mondeja/rspolib","texts":[90]},{"name":"rusqlite","version":"0.41.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[55]},{"name":"rustc-hash","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang-nursery/rustc-hash","texts":[21]},{"name":"rustc-hash","version":"2.1.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang/rustc-hash","texts":[40]},{"name":"rustc_version","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/rustc-version-rs","texts":[21]},{"name":"rustix","version":"0.38.44","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix","version":"1.1.6","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix-linux-procfs","version":"0.1.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/rustix-linux-procfs","texts":[4,21]},{"name":"rustversion","version":"1.0.23","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/rustversion","texts":[40]},{"name":"safe_arch","version":"0.7.4","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/safe_arch","texts":[39]},{"name":"scoped-tls","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/alexcrichton/scoped-tls","texts":[21]},{"name":"scoped-tls-hkt","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/scoped-tls-hkt","texts":[21]},{"name":"scopeguard","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/scopeguard","texts":[21]},{"name":"sctk-adwaita","version":"0.10.1","license":"MIT","repository":"https://github.com/PolyMeilex/sctk-adwaita","texts":[88]},{"name":"semver","version":"1.0.28","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/semver","texts":[40]},{"name":"serde","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_core","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_derive","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_json","version":"1.0.154","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/json","texts":[40]},{"name":"serde_repr","version":"0.1.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/serde-repr","texts":[40]},{"name":"serde_spanned","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"sha1","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"sha2","version":"0.10.9","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"shlex","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/comex/rust-shlex","texts":[40]},{"name":"signal-hook-registry","version":"1.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/vorner/signal-hook","texts":[21]},{"name":"simd-adler32","version":"0.3.10","license":"MIT","repository":"https://github.com/mcountryman/simd-adler32","texts":[92]},{"name":"simdutf8","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rusticstuff/simdutf8","texts":[40]},{"name":"simplecss","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/simplecss","texts":[21]},{"name":"siphasher","version":"1.0.4","license":"MIT OR Apache-2.0","repository":"https://github.com/jedisct1/rust-siphash","texts":[3]},{"name":"skrifa","version":"0.44.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"slab","version":"0.4.12","license":"MIT","repository":"https://github.com/tokio-rs/slab","texts":[65]},{"name":"slint","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"slint-build","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"slint-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"slotmap","version":"1.1.1","license":"Zlib","repository":"https://github.com/orlp/slotmap","texts":[119]},{"name":"smallvec","version":"1.16.5","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-smallvec","texts":[21]},{"name":"smithay-client-toolkit","version":"0.19.2","license":"MIT","repository":"https://github.com/smithay/client-toolkit","texts":[63]},{"name":"smol_str","version":"0.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/smol_str","texts":[21]},{"name":"smol_str","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/rust-analyzer/tree/master/lib/smol_str","texts":[21]},{"name":"snafu","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"snafu-derive","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"socket2","version":"0.6.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/socket2","texts":[21]},{"name":"softbuffer","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-windowing/softbuffer","texts":[36]},{"name":"spin_on","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"","texts":[21]},{"name":"spirv","version":"0.4.0+sdk-1.4.341.0","license":"Apache-2.0","repository":"https://github.com/gfx-rs/rspirv","texts":[40]},{"name":"stable_deref_trait","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/storyyeller/stable_deref_trait","texts":[21]},{"name":"static_assertions","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nvzqz/static-assertions-rs","texts":[3]},{"name":"strict-num","version":"0.1.1","license":"MIT","repository":"https://github.com/RazrFalcon/strict-num","texts":[70]},{"name":"strsim","version":"0.11.1","license":"MIT","repository":"https://github.com/rapidfuzz/strsim-rs","texts":[102]},{"name":"strum","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[84]},{"name":"strum_macros","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[84]},{"name":"svgtypes","version":"0.16.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/svgtypes","texts":[21]},{"name":"swash","version":"0.2.10","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/swash","texts":[21]},{"name":"symphonia","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"symphonia-bundle-mp3","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"symphonia-core","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"symphonia-metadata","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"syn","version":"2.0.119","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"syn","version":"3.0.10","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"synstructure","version":"0.14.0","license":"MIT","repository":"https://github.com/mystor/synstructure","texts":[76]},{"name":"sys-locale","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/sys-locale","texts":[8]},{"name":"taffy","version":"0.10.1","license":"MIT","repository":"https://github.com/DioxusLabs/taffy","texts":[90]},{"name":"target-lexicon","version":"0.13.5","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/target-lexicon","texts":[4]},{"name":"tempfile","version":"3.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Stebalien/tempfile","texts":[21]},{"name":"termcolor","version":"1.4.1","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/termcolor","texts":[101]},{"name":"test-log","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-core","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-macros","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"texpresso","version":"2.0.2","license":"MIT","repository":"https://github.com/jansol/texpresso","texts":[53,79]},{"name":"text-size","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/text-size","texts":[21]},{"name":"texture2ddecoder","version":"0.1.2","license":"MIT OR Apache-2.0","repository":"https://github.com/UniversalGameExtraction/texture2ddecoder","texts":[40]},{"name":"thiserror","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"tiny-skia","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia","texts":[45]},{"name":"tiny-skia","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia","texts":[45]},{"name":"tiny-skia-path","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia/tree/master/path","texts":[45]},{"name":"tiny-skia-path","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia/tree/master/path","texts":[45]},{"name":"tiny-xlib","version":"0.2.5","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/tiny-xlib","texts":[40]},{"name":"tinystr","version":"0.8.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"tinyvec","version":"1.13.3","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/tinyvec","texts":[3]},{"name":"tokio","version":"1.54.1","license":"MIT","repository":"https://github.com/tokio-rs/tokio","texts":[91]},{"name":"toml","version":"1.2.1+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_datetime","version":"1.1.3+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_edit","version":"0.25.19+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_parser","version":"1.1.5+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_writer","version":"1.2.0+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"tracing","version":"0.1.44","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[66]},{"name":"tracing-attributes","version":"0.1.31","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[66]},{"name":"tracing-core","version":"0.1.36","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[66,97]},{"name":"tree_magic_mini","version":"3.2.2","license":"MIT","repository":"https://github.com/mbrubeck/tree_magic/","texts":[80]},{"name":"ttf-parser","version":"0.25.1","license":"MIT OR Apache-2.0","repository":"https://github.com/harfbuzz/ttf-parser","texts":[21]},{"name":"typed-index-collections","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/zheland/typed-index-collections","texts":[40]},{"name":"typed-path","version":"0.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/chipsenkbeil/typed-path","texts":[40]},{"name":"typenum","version":"1.20.1","license":"MIT OR Apache-2.0","repository":"https://github.com/paholg/typenum","texts":[13]},{"name":"uds_windows","version":"1.2.1","license":"MIT","repository":"https://github.com/haraldh/rust_uds_windows","texts":[51]},{"name":"unicase","version":"2.10.0","license":"MIT OR Apache-2.0","repository":"https://github.com/seanmonstar/unicase","texts":[21]},{"name":"unicode-bidi","version":"0.3.18","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/unicode-bidi","texts":[21]},{"name":"unicode-ident","version":"1.0.27","license":"(MIT OR Apache-2.0) AND Unicode-3.0","repository":"https://github.com/dtolnay/unicode-ident","texts":[40,117]},{"name":"unicode-linebreak","version":"0.1.5","license":"Apache-2.0","repository":"https://github.com/axelf4/unicode-linebreak","texts":[8]},{"name":"unicode-script","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-script","texts":[29]},{"name":"unicode-segmentation","version":"1.13.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-segmentation","texts":[21]},{"name":"unicode-vo","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/unicode-vo","texts":[21]},{"name":"unicode-width","version":"0.2.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-width","texts":[21]},{"name":"unicode-xid","version":"0.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-xid","texts":[21]},{"name":"url","version":"2.5.8","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"urlencoding","version":"2.1.3","license":"MIT","repository":"https://github.com/kornelski/rust_urlencoding","texts":[114]},{"name":"usvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"utf8_iter","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf8_iter","texts":[3]},{"name":"utf8parse","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/alacritty/vte","texts":[40]},{"name":"utf_types","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf_types","texts":[3]},{"name":"uuid","version":"1.29.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/uuid-rs/uuid","texts":[21]},{"name":"vcpkg","version":"0.2.15","license":"MIT OR Apache-2.0","repository":"https://github.com/mcgoo/vcpkg-rs","texts":[30]},{"name":"version_check","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/SergioBenitez/version_check","texts":[21]},{"name":"vtable","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"vtable-macro","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"wasm-encoder","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder","texts":[4,21]},{"name":"wasm-metadata","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata","texts":[4,21]},{"name":"wasmparser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser","texts":[4,21]},{"name":"wasmprinter","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmprinter","texts":[4,21]},{"name":"wasmtime","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-environ","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-component-macro","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-component-util","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-core","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"wasmtime-internal-cranelift","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-fiber","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-jit-icache-coherence","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-unwinder","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-versioned-export-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-wit-bindgen","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-wasi","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-wasi-io","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wayland-backend","version":"0.3.17","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-client","version":"0.31.15","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-csd-frame","version":"0.3.0","license":"MIT","repository":"https://github.com/rust-windowing/wayland-csd-frame","texts":[72]},{"name":"wayland-cursor","version":"0.31.14","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-protocols","version":"0.32.13","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58,77]},{"name":"wayland-protocols-plasma","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58,93]},{"name":"wayland-protocols-wlr","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-scanner","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-sys","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"webbrowser","version":"1.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/amodm/webbrowser-rs","texts":[25]},{"name":"weezl","version":"0.1.12","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/weezl","texts":[20]},{"name":"wgpu","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core-deps-windows-linux-android","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-hal","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-naga-bridge","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wide","version":"0.7.33","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/wide","texts":[40]},{"name":"winapi-util","version":"0.1.11","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/winapi-util","texts":[105]},{"name":"windows","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-collections","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-core","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-future","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-implement","version":"0.60.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-interface","version":"0.59.3","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-link","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-numerics","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-result","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-strings","version":"0.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.52.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.59.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.61.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-targets","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-threading","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_gnu","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_msvc","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"winit","version":"0.30.13","license":"Apache-2.0","repository":"https://github.com/rust-windowing/winit","texts":[37]},{"name":"winnow","version":"1.0.5","license":"MIT","repository":"https://github.com/winnow-rs/winnow","texts":[95]},{"name":"winresource","version":"0.1.34","license":"MIT","repository":"https://github.com/BenjaminRi/winresource","texts":[75]},{"name":"wit-component","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component","texts":[4,21]},{"name":"wit-parser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser","texts":[4,21]},{"name":"wl-clipboard-rs","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/YaLTeR/wl-clipboard-rs","texts":[21]},{"name":"writeable","version":"0.6.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"x11-dl","version":"2.21.0","license":"MIT","repository":"https://github.com/AltF02/x11-rs.git","texts":[94]},{"name":"x11rb","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"x11rb-protocol","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"xcursor","version":"0.3.11","license":"MIT","repository":"https://github.com/esposm03/xcursor-rs","texts":[87]},{"name":"xkbcommon-dl","version":"0.4.2","license":"MIT","repository":"https://github.com/rust-windowing/xkbcommon-dl","texts":[108]},{"name":"xkeysym","version":"0.2.1","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/notgull/xkeysym","texts":[1]},{"name":"xml-rs","version":"0.8.29","license":"MIT","repository":"https://github.com/kornelski/xml-rs","texts":[98]},{"name":"xmlwriter","version":"0.1.0","license":"MIT","repository":"https://github.com/RazrFalcon/xmlwriter","texts":[106]},{"name":"yazi","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/yazi","texts":[21]},{"name":"yeslogic-fontconfig-sys","version":"6.0.1","license":"MIT","repository":"https://github.com/yeslogic/fontconfig-rs","texts":[110]},{"name":"yoke","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"yoke-derive","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zbus","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zbus-lockstep","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[94]},{"name":"zbus-lockstep-macros","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[94]},{"name":"zbus_macros","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zbus_names","version":"4.3.5","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zbus_xml","version":"5.2.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zcheapstr","version":"1.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zcheapstr/","texts":[74]},{"name":"zeno","version":"0.3.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/zeno","texts":[21]},{"name":"zerocopy","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerocopy-derive","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerofrom","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zerofrom-derive","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zeroize","version":"1.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zeroize_derive","version":"1.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zerotrie","version":"0.2.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zerovec","version":"0.11.9","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zerovec-derive","version":"0.11.7","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zip","version":"9.5.0","license":"MIT","repository":"https://github.com/zip-rs/zip2","texts":[97]},{"name":"zmij","version":"1.0.23","license":"MIT","repository":"https://github.com/dtolnay/zmij","texts":[94]},{"name":"zune-core","version":"0.5.3","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image","texts":[8]},{"name":"zune-jpeg","version":"0.5.15","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpeg","texts":[8]},{"name":"zvariant","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zvariant_derive","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zvariant_utils","version":"4.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[94]}],"licenses":[{"id":"0BSD","name":"BSD Zero Clause License","text":"Copyright (C) Jonas Schievink \n\nPermission to use, copy, modify, and/or distribute this software for\nany purpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN\nAN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT\nOF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022-2023 John Nunley\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\n--- LLVM Exceptions to the Apache 2.0 License ----\n\nAs an exception, if, as a result of your compiling your source code, portions\nof this Software are embedded into an Object form of such source code, you\nmay redistribute such embedded portions in such Object form without complying\nwith the conditions of Sections 4(a), 4(b) and 4(d) of the License.\n\nIn addition, if you combine or link compiled forms of this Software with\nsoftware that is licensed under the GPLv2 (\"Combined Software\") and if a\ncourt of competent jurisdiction determines that the patent provision (Section\n3), the indemnity provision (Section 9) or other Section of the License\nconflicts with the conditions of the GPLv2, you may retroactively and\nprospectively choose to deem waived or otherwise exclude such Section(s) of\nthe License, but only in their entirety and only with respect to the Combined\nSoftware.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) Microsoft Corporation.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 The Fuchsia Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2024 Radzivon Bartoshyk\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright Individual contributors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n Copyright 2020 Yoshua Wuyts\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright (c) 2016 Alex Crichton\nCopyright (c) 2017 The Tokio Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2014 Paho Lurie-Gregg\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2018 The pin-utils authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019 The CryptoCorrosion Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019- Jake Goulding\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2020 Andrew Straw\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 Traverse Research B.V.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [2015] [Dan Burkert]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright (c) 2015-2022 Amod Malviya\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/LICENSE-2.0\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 The Unicode-rs Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2019 Fontations Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright 2017-2023 Maik Klein, Maja KΔ…dzioΕ‚ka\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright [2017] [Maik Klein]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2016 Maik Klein\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Rust-chrono is dual-licensed under The MIT License [1] and\nApache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and\ncontributors.\n\nNota Bene: This is same as the Rust Project's own license.\n\n\n[1]: , which is reproduced below:\n\n~~~~\nThe MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n~~~~\n\n\n[2]: , which is reproduced below:\n\n~~~~\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n~~~~\n\n"},{"id":"BSD-2-Clause","name":"BSD 2-Clause \"Simplified\" License","text":"Copyright (c) 2015 David Roundy \nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the\n distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"\nCopyright 2026 restsend.com\n\nCopyright 2001-2023 Xiph.Org, Skype Limited, Octasic,\n Jean-Marc Valin, Timothy B. Terriberry,\n CSIRO, Gregory Maxwell, Mark Borgerding,\n Erik de Castro Lopo, Mozilla, Amazon\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n- Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n- Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n\n- Neither the name of Internet Society, IETF or IETF Trust, nor the\nnames of specific contributors, may be used to endorse or promote\nproducts derived from this software without specific prior written\npermission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER\nOR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nOpus is subject to the royalty-free patent licenses which are\nspecified at:\n\nXiph.Org Foundation:\nhttps://datatracker.ietf.org/ipr/1524/\n\nMicrosoft Corporation:\nhttps://datatracker.ietf.org/ipr/1914/\n\nBroadcom Corporation:\nhttps://datatracker.ietf.org/ipr/1526/"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"// Copyright Β© WHATWG (Apple, Google, Mozilla, Microsoft).\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// 3. Neither the name of the copyright holder nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n/// The PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_PUA: [u16; 18] = [\n 0xE78D, 0xE78E, 0xE78F, 0xE790, 0xE791, 0xE792, 0xE793, 0xE794, 0xE795, 0xE796, 0xE81E, 0xE826,\n 0xE82B, 0xE82C, 0xE832, 0xE843, 0xE854, 0xE864,\n];\n\n/// The bytes corresponding to the PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_BYTES: [[u8; 2]; 18] = [\n [0xA6, 0xD9],\n [0xA6, 0xDA],\n [0xA6, 0xDB],\n [0xA6, 0xDC],\n [0xA6, 0xDD],\n [0xA6, 0xDE],\n [0xA6, 0xDF],\n [0xA6, 0xEC],\n [0xA6, 0xED],\n [0xA6, 0xF3],\n [0xFE, 0x59],\n [0xFE, 0x61],\n [0xFE, 0x66],\n [0xFE, 0x67],\n [0xFE, 0x6D],\n [0xFE, 0x7E],\n [0xFE, 0x90],\n [0xFE, 0xA0],\n];\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright (c) 2011 Google Inc. All rights reserved.\nCopyright (c) 2020 Yevhenii Reizner All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\n * Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived\n from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright Β© WHATWG (Apple, Google, Mozilla, Microsoft).\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization\nobtaining a copy of the software and accompanying documentation covered by\nthis license (the \"Software\") to use, reproduce, display, distribute,\nexecute, and transmit the Software, and to prepare derivative works of the\nSoftware, and to permit third-parties to whom the Software is furnished to\ndo so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including\nthe above license grant, this restriction and the following disclaimer,\nmust be included in all copies of the Software, in whole or in part, and\nall derivative works of the Software, unless such copies or derivative\nworks are solely in the form of machine-executable object code generated by\na source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT\nSHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE\nFOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the \"Software\") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"GPL-3.0-only","name":"GNU General Public License v3.0 only","text":"GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright Β© 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\nβ€œThis License” refers to version 3 of the GNU General Public License.\n\nβ€œCopyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\nβ€œThe Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as β€œyou”. β€œLicensees” and β€œrecipients” may be individuals or organizations.\n\nTo β€œmodify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a β€œmodified version” of the earlier work or a work β€œbased on” the earlier work.\n\nA β€œcovered work” means either the unmodified Program or a work based on the Program.\n\nTo β€œpropagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo β€œconvey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays β€œAppropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe β€œsource code” for a work means the preferred form of the work for making modifications to it. β€œObject code” means any non-source form of a work.\n\nA β€œStandard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe β€œSystem Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A β€œMajor Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe β€œCorresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to β€œkeep intact all notices”.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an β€œaggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA β€œUser Product” is either (1) a β€œconsumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, β€œnormally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\nβ€œInstallation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\nβ€œAdditional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered β€œfurther restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn β€œentity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA β€œcontributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's β€œcontributor version”.\n\nA contributor's β€œessential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, β€œcontrol” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a β€œpatent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To β€œgrant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. β€œKnowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is β€œdiscriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License β€œor any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM β€œAS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the β€œcopyright” line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an β€œabout box”.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a β€œcopyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n"},{"id":"ISC","name":"ISC License","text":"Copyright Β© 2015, Simonas Kazlauskas\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without\nfee is hereby granted, provided that the above copyright notice and this permission notice appear\nin all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS\nSOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\nAUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\nNEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":" MIT License\n\n Copyright (c) Microsoft Corporation. All rights reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n"},{"id":"MIT","name":"MIT License","text":"# 3rd Party Notices\n\nThe `cfg_aliases!` macro uses a lot of the code from [`tectonic_cfg_support::target_cfg!`] macro which is under the following license:\n\n[`tectonic_cfg_support::target_cfg!`]: https://github.com/tectonic-typesetting/tectonic/blob/f2439b936470ad27bdf92882064bc4702ee01899/cfg_support/src/lib.rs#L166\n\n tectonic_cfg_support is licensed under the MIT License.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the β€œSoftware”), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n---\n"},{"id":"MIT","name":"MIT License","text":"// Copyright (c) 2006 Simon Brown \n// Copyright (c) 2018-2021 Jan Solanti \n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to\tdeal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmod cluster;\nmod range;\nmod single;\nmod single_lut;\n\npub use self::cluster::ClusterFit;\npub use self::range::RangeFit;\npub use self::single::SingleColourFit;\n\npub trait ColourFit<'a> {\n fn compress(&'a mut self, block: &mut [u8]);\n}\n\npub trait ColourFitImpl<'a> {\n fn is_bc1(&self) -> bool;\n fn is_transparent(&self) -> bool;\n fn compress3(&mut self);\n fn compress4(&mut self);\n fn best_compressed(&'a self) -> &'a [u8];\n}\n\nimpl<'a, T> ColourFit<'a> for T\nwhere\n T: ColourFitImpl<'a>,\n{\n fn compress(&'a mut self, block: &mut [u8]) {\n if self.is_bc1() {\n self.compress3();\n if !self.is_transparent() {\n self.compress4();\n }\n } else {\n self.compress4();\n }\n\n block.copy_from_slice(self.best_compressed());\n }\n}\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 Carl Lerche and other MIO contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 The rusqlite developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2019 Geoffroy Couprie\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2020 Optimal Computing (NZ) Ltd\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Elinor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Jonathan Reem\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2017 Gilad Naaman\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Tokio Contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Olivier Goffart \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Γ‰lie ROUDNINSKI (marmeladema) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2022 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2024 Zeeshan Ali Khan & zbus contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2026 Zeeshan Ali Khan & zcheapstr contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Max Resch\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Nika Layzell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright Β© 2008-2013 Kristian HΓΈgsberg\nCopyright Β© 2010-2013 Intel Corporation\nCopyright Β© 2013 Rafael Antognolli\nCopyright Β© 2013 Jasper St. Pierre\nCopyright Β© 2014 Jonas Γ…dahl\nCopyright Β© 2014 Jason Ekstrand\nCopyright Β© 2014-2015 Collabora, Ltd.\nCopyright Β© 2015 Red Hat Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n---\n\nThe above is the version of the MIT \"Expat\" License used by X.org:\n\n http://cgit.freedesktop.org/xorg/xserver/tree/COPYING\n"},{"id":"MIT","name":"MIT License","text":"Copyright Β© 2022 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the β€œSoftware”), to deal\nin the Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2006 Simon Brown \nCopyright (c) 2018-2021 Jan Solanti \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Aaron Hancock\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Maiddog\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2018 diwic\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Kornel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Peter Glotfelty\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Bilal Elmoussaoui\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Katharos Technology\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Samuele Esposito\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2022 BartΕ‚omiej MaryΕ„czak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2025 rutrum\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO\nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) Tokio Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) [2021] [Marvin Countryman]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License Copyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS\nOR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\nOR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License\n\nCopyright 2015 Google Inc. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Mathijs van de Nes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Vladimir Matveev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014-2022 Steven Fackler, Yuki Okushi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Danny Guo\nCopyright (c) 2016 Titus Wormer \nCopyright (c) 2018 Akash Kurdekar\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Jelte Fennema\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 PistonDevelopers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2017 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2019 Reizner Evgeniy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) HarfBuzz developers\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright 2019 YesLogic Pty. Ltd.\nCopyright 2016 Manuel Reinhardt\nCopyright 2014 Austin Bonander\nCopyright 2013 The Servo Project Developers.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 BartΕ‚omiej KamiΕ„ski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Johann Tuffe\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Β© 2016 Bertram Truong\nΒ© 2021 Kornel LesiΕ„ski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0."},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright Β© 1991-2023 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright Β© 2020-2024 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n\nSPDX-License-Identifier: Unicode-3.0\n\nβ€”\n\nPortions of ICU4X may have been adapted from ICU4C and/or ICU4J.\nICU 1.8.1 to ICU 57.1 Β© 1995-2016 International Business Machines Corporation and others.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2021 Orson Peters \n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n 3. This notice may not be removed or altered from any source distribution.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2024 Orson Peters\n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n3. This notice may not be removed or altered from any source distribution."}]} diff --git a/crates/openrage-cli/src/cli.rs b/crates/openrage-cli/src/cli.rs index 13ea834..966702f 100644 --- a/crates/openrage-cli/src/cli.rs +++ b/crates/openrage-cli/src/cli.rs @@ -64,7 +64,7 @@ pub(crate) enum Command { /// Instead of archives, decode every sound of every audio container (.awc). #[arg(long, conflicts_with_all = ["textures", "models"])] audio: bool, - /// Instead of archives, parse every clip dictionary (.ycd) and evaluate every frame. + /// Instead of archives, parse every clip dictionary (.ycd; GTA VI .#cd) and evaluate its frames. #[arg(long, conflicts_with_all = ["textures", "models", "audio"])] animations: bool, /// Instead of archives, convert every metadata file (.ymap, .ytyp, .ymt, .ymf, .cut, .pso) to XML. @@ -86,7 +86,8 @@ pub(crate) enum Command { /// Instead of archives, disassemble every script (.ysc) and check every jump. #[arg(long, conflicts_with_all = ["textures", "models", "audio", "animations", "meta", "text", "particles", "collisions", "paths"])] scripts: bool, - /// Instead of archives, read the header of every Scaleform movie (.gfx) and Bink video (.bik). + /// Instead of archives, read the header of every Scaleform movie (.gfx) and Bink video (.bik, .bk2), + /// and decode the first second of every video. #[arg(long, conflicts_with_all = ["textures", "models", "audio", "animations", "meta", "text", "particles", "collisions", "paths", "scripts"])] media: bool, /// Instead of archives, read every GTA IV cutscene (.cut): its sections, the clips of @@ -128,7 +129,8 @@ pub(crate) enum Command { /// Put a map file (.ymap) together: its objects with their models and textures /// (builds the world cache on first use). Map { - /// Virtual path of the .ymap (GTA IV: .wpl; none with --check). + /// Virtual path of the .ymap (GTA IV: .wpl; GTA VI: .#map, or none for the whole map from afar; none with + /// --check). path: Option, /// Render a picture of the whole map file (PNG). #[arg(long)] @@ -228,13 +230,22 @@ pub(crate) enum Command { /// Instead of only reading files, decode every sound of every audio container. #[arg(long, conflicts_with_all = ["textures", "models", "text", "meta"])] audio: bool, - /// Instead of only reading files, parse every clip dictionary (.ycd) and evaluate every frame. + /// Instead of only reading files, parse every clip dictionary (.ycd; GTA VI .#cd) and evaluate its frames. #[arg(long, conflicts_with_all = ["textures", "models", "text", "meta", "audio"])] anims: bool, }, - /// Show facts about a Scaleform movie (.gfx) or a Bink video (.bik). + /// Show facts about a Scaleform movie (.gfx) or a Bink video (.bik, .bk2). Media { path: String, + /// For a Bink video: write its pictures as PNG files into this directory. + #[arg(long)] + frames: Option, + /// Only write every n-th picture. + #[arg(long, default_value_t = 1, requires = "frames")] + every: usize, + /// For a Bink video: write its sound as a WAV file (the second track and on as `name.2.wav` …). + #[arg(long)] + wav: Option, /// For a .gfx: write it as a Flash file (.swf) for Flash tools such as JPEXS or Ruffle. #[arg(long)] swf: Option, @@ -350,7 +361,7 @@ pub(crate) enum Command { #[arg(long)] outfit: Option, }, - /// List the clips of a clip dictionary (.ycd; GTA IV .wad). + /// List the clips of a clip dictionary (.ycd; GTA IV .wad; GTA VI .#cd). Clips { /// Virtual path of the .ycd file. path: String, @@ -379,6 +390,23 @@ pub(crate) enum Command { #[arg(short = 'o', long, visible_alias = "out")] export: Option, }, + /// GTA VI: count the textures of a texture pool (.ttpf) and optionally export them as PNG. + Ttpf { + /// The pool file. + path: PathBuf, + /// Export the textures into this folder as .png, named by their number. + #[arg(short = 'o', long, visible_alias = "out")] + export: Option, + /// The first texture to read. + #[arg(long, default_value_t = 0)] + from: usize, + /// How many textures to read (default: all). + #[arg(long)] + count: Option, + /// Read the largest mip level that is at most this many pixels wide and high. + #[arg(long)] + max_side: Option, + }, /// List the textures of a texture dictionary (.ytd) and optionally export them. Textures { /// Virtual path of the .ytd file. diff --git a/crates/openrage-cli/src/cmd/archive.rs b/crates/openrage-cli/src/cmd/archive.rs index 471180c..af6cc10 100644 --- a/crates/openrage-cli/src/cmd/archive.rs +++ b/crates/openrage-cli/src/cmd/archive.rs @@ -161,6 +161,33 @@ pub(crate) fn cmd_ls(game_dir: &Path, path: &str, recursive: bool, keys: Option< print_rpf8_entry(&mut out, &rpf, i, name.rsplit('/').next().unwrap_or(&name)); } } + Node::Rpf9File(rpf, i) => { + let entries = rpf.entries()?; + print_rpf9_entry(&mut out, &rpf, &entries[i], &rpf.entry_name(&entries[i])); + } + Node::Rpf9Dir(rpf, dir) => { + let entries = rpf.entries()?; + openrage_app::rpf9::names_now(&rpf); + if recursive { + let prefix = if dir.is_empty() { String::new() } else { format!("{dir}/") }; + for e in entries.iter() { + let name = rpf.entry_name(e); + let below = name.get(..prefix.len()).is_some_and(|s| s.eq_ignore_ascii_case(&prefix)); + if let Some(rel) = name.get(prefix.len()..).filter(|_| below) { + print_rpf9_entry(&mut out, &rpf, e, rel); + } + } + } else { + let (dirs, files) = rpf.list_dir(&entries, &dir); + for d in dirs { + ls_row(&mut out, "dir", None, "", &d, true); + } + for i in files { + let name = rpf.entry_name(&entries[i]); + print_rpf9_entry(&mut out, &rpf, &entries[i], name.rsplit('/').next().unwrap_or(&name)); + } + } + } Node::Gta4File(a, id) => print_gta4_entry(&mut out, &a, id, &a.entry_path(id)), Node::Gta4Dir(a, dir) => { if recursive { @@ -232,6 +259,67 @@ pub(crate) fn cmd_info(game_dir: &Path, path: &str, keys: Option>) outln!("Folder: {dir}"); } } + Node::Rpf9Dir(rpf, dir) => { + outln!("Archive: {}", rpf.display_name()); + outln!("Format: RPF9 (Grand Theft Auto VI)"); + outln!("Size: {} ({} bytes)", human(rpf.size()), rpf.size()); + outln!("Index slots: {} (declared in header; distinct from recovered streams)", rpf.header().entry_count); + outln!("TOC tag: {:#04x} (native transform selector)", rpf.header().toc_transform); + if rpf.is_native() { + outln!("Table: read with the game's executable"); + } else { + outln!("Table: encrypted, not read (file names and folders are unknown)"); + } + outln!("Data: from offset {:#x}, {}", rpf.header().data_offset, human(rpf.data_len())); + // The archive itself is described without reading all of it. + let known = openrage_app::rpf9::known_entries(&rpf); + let entries = if dir.is_empty() { known } else { Some(rpf.entries()?) }; + match entries { + Some(entries) => { + let c = openrage_app::rpf9::coverage(&rpf, &entries); + outln!( + "{} {} files, {} in the archive, {} unpacked", + if rpf.is_native() { "Contents: " } else { "Recovered:" }, + c.files, + human(c.stored), + human(c.unpacked) + ); + if !rpf.is_native() { + outln!( + "Not read: {} (padding, and data that is neither zlib, Bink 2 nor an audio container)", + human(c.unread) + ); + } + } + None => outln!("Recovered: not indexed yet; `openrage ls` on the archive reads all of it once"), + } + if !dir.is_empty() { + outln!("Folder: {dir}"); + } + } + Node::Rpf9File(rpf, i) => { + let entries = rpf.entries()?; + let e = &entries[i]; + outln!("Path: {}/{}", rpf.display_name(), rpf.entry_name(e)); + if rpf.is_native() { + outln!("Kind: {}", if rpf.resource_parts(e).is_some() { "resource" } else { "file" }); + } else { + outln!("Kind: recovered file (its name is its offset; the real name is unknown)"); + } + outln!("Offset: {:#x}", e.offset); + outln!("Size: {} ({} on disk)", human(e.size), human(e.stored)); + match e.kind { + rage_rpf::rpf9::Kind::Zlib => outln!("Stored as: {} zlib stream(s)", e.streams), + rage_rpf::rpf9::Kind::Bink2 => outln!("Stored as: Bink 2 video"), + rage_rpf::rpf9::Kind::Awc => outln!("Stored as: audio container"), + rage_rpf::rpf9::Kind::Native { slot } => { + outln!("Slot: {slot}"); + if let Some((system, graphics)) = rpf.resource_parts(e) { + outln!("Parts: {} system, {} graphics", human(system), human(graphics)); + } + } + } + } Node::Rpf8File(rpf, i) => { let e = &rpf.entries().expect("entries")[i]; outln!("Path: {}/{}", rpf.display_name(), rpf.entry_name(i)); @@ -303,6 +391,34 @@ pub(crate) fn report_rpf8_extract(rpf: &rage_rpf::Rpf8, dir: &str, file: Option< extraction_result(s.failures.len()) } +pub(crate) fn report_rpf9_extract( + rpf: &rage_rpf::Rpf9, + dir: &str, + file: Option, + out: &Path, + expand: bool, +) -> Result<()> { + let s = openrage_app::rpf9::extract(rpf, dir, file, out, expand, &AtomicBool::new(false), &mut |_, _| {})?; + for f in &s.failures { + eprintln!("warning: {f}"); + } + outln!("{} file(s) ({}) extracted to {}, {} failed", s.files, human(s.bytes), out.display(), s.failures.len()); + extraction_result(s.failures.len()) +} + +/// One file of a GTA VI archive. +pub(crate) fn print_rpf9_entry(out: &mut Rows, rpf: &rage_rpf::Rpf9, e: &rage_rpf::rpf9::Entry, name: &str) { + let archive = rpf.is_archive(e); + let kind = if archive { + "rpf" + } else if rpf.resource_parts(e).is_some() { + "resource" + } else { + "file" + }; + ls_row(out, kind, Some(e.size), "", name, archive); +} + /// Extraction goes on past single failures, but the command still fails then, /// so scripts notice. pub(crate) fn extraction_result(failures: usize) -> Result<()> { @@ -336,6 +452,8 @@ pub(crate) fn cmd_extract( Node::ArchiveFile(rpf, id) | Node::ArchiveDir(rpf, id) => (rpf, id), Node::Rpf8File(rpf, i) => return report_rpf8_extract(&rpf, "", Some(i), out), Node::Rpf8Dir(rpf, dir) => return report_rpf8_extract(&rpf, &dir, None, out), + Node::Rpf9File(rpf, i) => return report_rpf9_extract(&rpf, "", Some(i), out, expand), + Node::Rpf9Dir(rpf, dir) => return report_rpf9_extract(&rpf, &dir, None, out, expand), Node::Gta4Dir(a, id) | Node::Gta4File(a, id) => { let s = openrage_app::gta4::extract(&a, id, out, &AtomicBool::new(false), &mut |_, _| {})?; for f in &s.failures { diff --git a/crates/openrage-cli/src/cmd/edit.rs b/crates/openrage-cli/src/cmd/edit.rs index bf1a3f8..0d43343 100644 --- a/crates/openrage-cli/src/cmd/edit.rs +++ b/crates/openrage-cli/src/cmd/edit.rs @@ -57,6 +57,7 @@ pub(crate) fn load_ytd( .with_context(|| format!("{path} is not a file inside an archive or an RSC8 resource"))?; Ok(rage_formats::ytd::parse_rdr2(&res)?) } + Node::Rpf9File(rpf, i) => openrage_app::textures::gta6_dictionary(&rpf, i), _ => bail!("{path} is not a file inside an archive"), } } diff --git a/crates/openrage-cli/src/cmd/search.rs b/crates/openrage-cli/src/cmd/search.rs index 8ffcd55..79e298f 100644 --- a/crates/openrage-cli/src/cmd/search.rs +++ b/crates/openrage-cli/src/cmd/search.rs @@ -9,9 +9,19 @@ pub(crate) fn open_index(game_dir: &Path) -> Result { pub(crate) fn cmd_index(game_dir: &Path, keys: Option>) -> Result<()> { let mut index = open_index(game_dir)?; + // A GTA VI archive reports each part of it: not a line for every one. + let mut last = (0, Instant::now()); let stats = index.update(game_dir, keys, &AtomicBool::new(false), &mut |p| { + if p.archives_done == last.0 && last.1.elapsed().as_secs() < 2 { + return; + } + last = (p.archives_done, Instant::now()); eprintln!(" [{}/{}] {} ({} entries)", p.archives_done, p.archives_total, p.current, p.entries); })?; + let names = openrage_app::rpf9::learn_names(&mut index)?; + if names > 0 { + outln!("Learned {names} names of GTA VI files from other archives."); + } let s = index.stats()?; outln!( "Indexed {} archives, removed {}, unchanged {} in {:.1}s ({} read errors).", @@ -62,7 +72,7 @@ pub(crate) fn cmd_search( .iter() .map(|hit| { let snippet = (hit.reason == rage_index::HitReason::Content) - .then(|| content_snippet(game_dir, &hit.vpath, &hit.name, &needle, keys.clone())) + .then(|| content_snippet(game_dir, &hit.vpath, &needle, keys.clone())) .flatten(); serde_json::json!({ "match": reason(&hit.reason), @@ -98,7 +108,7 @@ pub(crate) fn cmd_search( for hit in &results.hits { outln!("{:<5} {:>8} {}", reason(&hit.reason), human(hit.size), hit.vpath); if hit.reason == rage_index::HitReason::Content - && let Some(line) = content_snippet(game_dir, &hit.vpath, &hit.name, &needle, keys.clone()) + && let Some(line) = content_snippet(game_dir, &hit.vpath, &needle, keys.clone()) { outln!(" β”” {line}"); } @@ -116,18 +126,38 @@ pub(crate) fn cmd_search( pub(crate) fn content_snippet( game_dir: &Path, vpath: &str, - name: &str, query: &str, keys: Option>, ) -> Option { - let Node::ArchiveFile(rpf, id) = vfs::resolve(game_dir, vpath, keys).ok()? else { return None }; - let data = rpf.read(id).ok()?; - let (text, _) = rage_index::content_for(name, &data)?; + let text = rage_index::node_text(&vfs::resolve(game_dir, vpath, keys).ok()?)?; rage_index::snippet(&text, query) } pub(crate) fn cmd_find(game_dir: &Path, within: &str, pattern: &str, keys: Option>) -> Result<()> { let needle = pattern.to_ascii_lowercase(); + match vfs::resolve(game_dir, within, keys.clone())? { + Node::Rpf9Dir(rpf, dir) => { + let prefix = within.trim_end_matches('/'); + let top = if dir.is_empty() { prefix } else { prefix[..prefix.len() - dir.len()].trim_end_matches('/') }; + return find_rpf9(&[(top.to_owned(), rpf, dir)], &needle); + } + Node::Dir(dir) if openrage_app::detect::is_gta6_dir(game_dir) => { + let mut found = Vec::new(); + collect_rpfs(&dir, &mut found); + let mut starts = Vec::new(); + for path in found.into_iter().filter(|p| rage_rpf::Rpf9::file_is_rpf9(p)) { + let rel = path.strip_prefix(game_dir).unwrap_or(&path).to_string_lossy().replace('\\', "/"); + // Asked one after the other: the first loads the keys. + match rage_rpf::Rpf9::open(&path) { + Ok(rpf) if rpf.is_native() => starts.push((rel, Arc::new(rpf), String::new())), + Ok(_) => eprintln!("warning: {rel}: its table cannot be read"), + Err(e) => eprintln!("warning: {e}"), + } + } + return find_rpf9(&starts, &needle); + } + _ => {} + } let starts = archive_roots(game_dir, within, keys)?; let started = Instant::now(); @@ -163,3 +193,50 @@ pub(crate) fn cmd_find(game_dir: &Path, within: &str, pattern: &str, keys: Optio eprintln!("{hits} matches in {total} entries ({:.1}s)", started.elapsed().as_secs_f32()); Ok(()) } + +/// `find` in GTA VI archives and those inside them, below a folder of each. +fn find_rpf9(starts: &[(String, Arc, String)], needle: &str) -> Result<()> { + fn walk(prefix: &str, rpf: &rage_rpf::Rpf9, dir: &str, needle: &str) -> (usize, usize) { + let entries = match rpf.entries() { + Ok(entries) => entries, + Err(e) => { + eprintln!("warning: {e}"); + return (0, 0); + } + }; + let below = if dir.is_empty() { String::new() } else { format!("{dir}/") }; + entries + .par_iter() + .map(|e| { + let name = rpf.entry_name(e); + if !name.get(..below.len()).is_some_and(|start| start.eq_ignore_ascii_case(&below)) { + return (0, 0); + } + let path = format!("{prefix}/{name}"); + let base = name.rsplit('/').next().unwrap_or(&name); + let mut found = (0, 1); + if base.to_ascii_lowercase().contains(needle) { + outln!("{path}"); + found.0 = 1; + } + if rpf.is_archive(e) { + match rpf.open_child(e) { + Ok(child) => { + let inside = walk(&path, &child, "", needle); + found = (found.0 + inside.0, found.1 + inside.1); + } + Err(e) => eprintln!("warning: {e}"), + } + } + found + }) + .reduce(|| (0, 0), |a, b| (a.0 + b.0, a.1 + b.1)) + } + let started = Instant::now(); + let (hits, total) = starts + .iter() + .map(|(prefix, rpf, dir)| walk(prefix, rpf, dir, needle)) + .fold((0, 0), |a, b| (a.0 + b.0, a.1 + b.1)); + eprintln!("{hits} matches in {total} entries ({:.1}s)", started.elapsed().as_secs_f32()); + Ok(()) +} diff --git a/crates/openrage-cli/src/cmd/verify.rs b/crates/openrage-cli/src/cmd/verify.rs index ac53328..d76c4cb 100644 --- a/crates/openrage-cli/src/cmd/verify.rs +++ b/crates/openrage-cli/src/cmd/verify.rs @@ -1,4 +1,4 @@ -//! `openrage verify`: every file of a kind in the whole GTA V game. +//! `openrage verify`: archive data and game-specific formats. use crate::*; @@ -183,10 +183,14 @@ pub(crate) fn cmd_verify_media(game_dir: &Path, within: &str, keys: Option String { /// Per archive: files, clips, animations, frame-count mismatches, bad values, errors. pub(crate) type AnimStats = (usize, usize, usize, usize, usize, Vec); +/// Reads every GTA VI clip dictionary (`.#cd`) below a path, archives inside +/// included, and checks its values. An animation that does not add up is an +/// error of the reader already. +fn verify_gta6_animations(node: Node, within: &str) -> Result<()> { + use rayon::prelude::*; + let started = Instant::now(); + /// The clip dictionaries of an archive and the archives inside. + fn collect( + rpf: Arc, + dir: &str, + out: &mut Vec<(Arc, usize)>, + errors: &mut Vec, + ) { + let entries = match rpf.entries() { + Ok(entries) => entries, + Err(e) => return errors.push(format!("{}: {e}", rpf.display_name())), + }; + let prefix = if dir.is_empty() { String::new() } else { format!("{}/", dir.to_ascii_lowercase()) }; + for (i, e) in entries.iter().enumerate() { + let name = rpf.entry_name(e).to_ascii_lowercase(); + if !name.starts_with(&prefix) { + continue; + } + if name.ends_with(".#cd") { + out.push((Arc::clone(&rpf), i)); + } else if rpf.is_archive(e) { + match rpf.open_child(e) { + Ok(child) => collect(Arc::new(child), "", out, errors), + Err(e) => errors.push(e.to_string()), + } + } + } + } + let (mut files, mut errors) = (Vec::new(), Vec::new()); + match node { + Node::Rpf9Dir(rpf, dir) => collect(rpf, &dir, &mut files, &mut errors), + Node::Rpf9File(rpf, i) => files.push((rpf, i)), + _ => bail!("{within}: not a GTA VI archive"), + } + let check = |(rpf, i): &(Arc, usize)| -> Result<(usize, usize, usize, usize, usize)> { + let (system, graphics) = openrage_app::rpf9::resource(rpf, *i)?; + let dict = rage_formats::clip6::parse(&rage_resource::Resource { version: 0, system, graphics })?; + let (mut tracks, mut values, mut bad) = (0, 0, 0); + for a in &dict.animations { + tracks += a.tracks.len(); + for (t, track) in a.tracks.iter().enumerate() { + for f in (0..a.frames).step_by(7) { + let Some(v) = a.value(t, f as f32) else { bail!("a track without values") }; + values += 1; + let norm = v.iter().map(|x| x * x).sum::().sqrt(); + if v.iter().any(|x| !x.is_finite()) || (track.format == 1 && !(0.99..=1.01).contains(&norm)) { + bad += 1; + } + } + } + } + Ok((dict.clips.len(), dict.animations.len(), tracks, values, bad)) + }; + let results: Vec<_> = files + .par_iter() + .map(|file| { + check(file).map_err(|e| { + let name = file.0.entries().ok().and_then(|es| es.get(file.1).map(|e| file.0.entry_name(e))); + format!("{}/{}: {e:#}", file.0.display_name(), name.unwrap_or_default()) + }) + }) + .collect(); + let mut total = [0usize; 5]; + for r in results { + match r { + Ok((clips, animations, tracks, values, bad)) => { + for (sum, n) in total.iter_mut().zip([clips, animations, tracks, values, bad]) { + *sum += n; + } + } + Err(e) => errors.push(e), + } + } + for e in errors.iter().take(40) { + outln!("FAIL {e}"); + } + outln!( + "{} clip dictionaries, {} clips, {} animations, {} tracks; {} values checked, {} bad; {} errors ({:.1}s)", + files.len(), + total[0], + total[1], + total[2], + total[3], + total[4], + errors.len(), + started.elapsed().as_secs_f32() + ); + if !errors.is_empty() || total[4] > 0 { + bail!("verification found {} errors", errors.len() + total[4]); + } + Ok(()) +} + pub(crate) fn cmd_verify_animations(game_dir: &Path, within: &str, keys: Option>) -> Result<()> { + if let node @ (Node::Rpf9Dir(..) | Node::Rpf9File(..)) = vfs::resolve(game_dir, within, keys.clone())? { + return verify_gta6_animations(node, within); + } let starts = archive_roots(game_dir, within, keys)?; let started = Instant::now(); let (all, nested) = for_each_entry_parallel( @@ -1414,6 +1519,11 @@ pub(crate) struct VerifyStats { } pub(crate) fn cmd_verify(game_dir: &Path, within: &str, keys: Option>) -> Result<()> { + match vfs::resolve(game_dir, within, keys.clone())? { + node @ (Node::Rpf9Dir(..) | Node::Rpf9File(..)) => return verify_rpf9(node, within), + node @ Node::Dir(_) if openrage_app::detect::is_gta6_dir(game_dir) => return verify_rpf9(node, within), + _ => {} + } let starts = archive_roots(game_dir, within, keys)?; let started = Instant::now(); let (stats, nested) = for_each_entry_parallel_reporting( @@ -1465,3 +1575,144 @@ pub(crate) fn cmd_verify(game_dir: &Path, within: &str, keys: Option Result<()> { + let started = Instant::now(); + let mut total = VerifyStats::default(); + match node { + Node::Rpf9Dir(rpf, dir) => verify_rpf9_archive(&rpf, &dir, None, &mut total)?, + Node::Rpf9File(rpf, i) => verify_rpf9_archive(&rpf, "", Some(i), &mut total)?, + Node::Dir(dir) => { + let mut found = Vec::new(); + collect_rpfs(&dir, &mut found); + for path in found.into_iter().filter(|p| rage_rpf::Rpf9::file_is_rpf9(p)) { + match rage_rpf::Rpf9::open(&path) + .map_err(anyhow::Error::from) + .and_then(|rpf| verify_rpf9_archive(&rpf, "", None, &mut total)) + { + Ok(()) => {} + Err(e) => total.errors.push(format!("{}: {e:#}", path.display())), + } + } + } + _ => bail!("{within}: not an RPF9 recovery path"), + } + if total.archives == 0 && total.errors.is_empty() { + bail!("{within}: no RPF9 archives found"); + } + for error in &total.errors { + outln!("FAIL {error}"); + } + outln!( + "{} RPF9 archives, {} files checked, {} decoded, {} errors ({:.1}s)", + total.archives, + total.files, + human(total.bytes), + total.errors.len(), + started.elapsed().as_secs_f32() + ); + outln!( + "For archives whose own table is not read, this checks zlib decoding, entry bounds and unpacked sizes. Original names, encrypted table of contents and undiscovered data are not verified; raw audio/video checks do not validate their media contents." + ); + if !total.errors.is_empty() { + bail!("verification found {} errors", total.errors.len()); + } + Ok(()) +} + +fn verify_rpf9_archive(rpf: &rage_rpf::Rpf9, dir: &str, file: Option, total: &mut VerifyStats) -> Result<()> { + let entries = rpf.entries()?; + total.archives += 1; + let coverage = openrage_app::rpf9::coverage(rpf, &entries); + outln!( + "{}: {}: {} files, {} stored of {} data, {} unread (includes padding)", + rpf.display_name(), + if rpf.is_native() { "archive table" } else { "recovery coverage" }, + coverage.files, + human(coverage.stored), + human(rpf.data_len()), + human(coverage.unread) + ); + if file.is_some_and(|i| i >= entries.len()) { + bail!("invalid recovery entry index"); + } + let prefix = + if dir.is_empty() { String::new() } else { format!("{}/", dir.trim_matches('/').to_ascii_lowercase()) }; + for (i, entry) in entries.iter().enumerate() { + let name = rpf.entry_name(entry); + if file.map_or_else(|| !name.to_ascii_lowercase().starts_with(&prefix), |selected| selected != i) { + continue; + } + total.files += 1; + match rpf.copy_to(entry, &mut std::io::sink()) { + Ok(bytes) if bytes == entry.size => total.bytes += bytes, + Ok(bytes) => total.errors.push(format!( + "{}/{name}: expected {} unpacked bytes, read {bytes}", + rpf.display_name(), + entry.size + )), + Err(error) => total.errors.push(format!("{}/{name}: {error}", rpf.display_name())), + } + } + Ok(()) +} + +#[cfg(test)] +mod rpf9_tests { + use super::*; + + fn archive(name: &str) -> (PathBuf, rage_rpf::Rpf9) { + let dir = std::env::temp_dir().join(format!("openrage-cli-rpf9-{}-{name}", std::process::id())); + let _ = fs::remove_dir_all(&dir); + fs::create_dir_all(&dir).unwrap(); + let mut bytes = vec![0u8; 64]; + bytes[..4].copy_from_slice(b"9FPR"); + bytes[4..8].copy_from_slice(&64u32.to_le_bytes()); + // A complete zlib stream containing "hello", followed by alignment. + bytes.extend_from_slice(b"\x78\x9c\xcb\x48\xcd\xc9\xc9\x07\x00\x06\x2c\x02\x15"); + bytes.resize(80, 0); + let path = dir.join("common.rpf"); + fs::write(&path, bytes).unwrap(); + (dir, rage_rpf::Rpf9::open(&path).unwrap()) + } + + #[test] + fn verifies_recovered_paths_and_skips_other_archive_formats() { + let (dir, rpf) = archive("paths"); + fs::write(dir.join(openrage_app::detect::GTA6_EXE), b"MZ").unwrap(); + fs::write(dir.join("other.rpf"), b"not RPF9").unwrap(); + fs::create_dir(dir.join("empty")).unwrap(); + assert!(cmd_verify(&dir, "empty", None).is_err()); + let entries = rpf.entries().unwrap(); + assert_eq!(entries.len(), 1); + assert_eq!(entries[0].size, 5); + let name = rpf.entry_name(&entries[0]); + assert!(cmd_verify(&dir, "", None).is_ok()); + assert!(cmd_verify(&dir, "common.rpf", None).is_ok()); + assert!(cmd_verify(&dir, "common.rpf/txt", None).is_ok()); + assert!(cmd_verify(&dir, &format!("common.rpf/{name}"), None).is_ok()); + let mut stats = VerifyStats::default(); + verify_rpf9_archive(&rpf, "txt", None, &mut stats).unwrap(); + assert_eq!((stats.archives, stats.files, stats.bytes), (1, 1, 5)); + assert!(stats.errors.is_empty()); + fs::remove_dir_all(dir).unwrap(); + } + + #[test] + fn detects_corrupted_data_against_a_recovery_index() { + let (dir, rpf) = archive("corrupt"); + let entries = rpf.entries().unwrap(); + assert_eq!(entries.len(), 1); + // Keep the already-recovered index, then break the stream checksum. + let mut bytes = fs::read(rpf.path()).unwrap(); + bytes[76] ^= 1; + fs::write(rpf.path(), bytes).unwrap(); + let mut stats = VerifyStats::default(); + verify_rpf9_archive(&rpf, "", Some(0), &mut stats).unwrap(); + assert_eq!((stats.files, stats.errors.len()), (1, 1)); + assert!(verify_rpf9(Node::Rpf9Dir(Arc::new(rpf), String::new()), "common.rpf").is_err()); + fs::remove_dir_all(dir).unwrap(); + } +} diff --git a/crates/openrage-cli/src/cmd/view.rs b/crates/openrage-cli/src/cmd/view.rs index 0f501a6..d8d585c 100644 --- a/crates/openrage-cli/src/cmd/view.rs +++ b/crates/openrage-cli/src/cmd/view.rs @@ -130,17 +130,29 @@ pub(crate) fn cmd_map( ) -> Result<()> { use openrage_app::world; let started = Instant::now(); - let w = world::load(game_dir, keys.clone())?; - let files = world::files(game_dir)?; - if check { - return check_maps(game_dir, &w, &files, keys, started); - } - let path = path.context("which map file? (or --check for all)")?; - let scene = world::load_map(&w, &files, game_dir, keys, path, &|done, total| { - if done % 25 == 0 || done == total { - eprint!("\rloading models: {done}/{total}"); + let show = |what: &str, done: usize, total: usize| { + if done.is_multiple_of(25) || done == total { + eprint!("\r{what}: {done}/{total} "); } - })?; + }; + let scene = if openrage_app::detect::is_gta6_dir(game_dir) { + if check { + bail!("--check is not supported for GTA VI yet"); + } + match path { + Some(path) => openrage_app::gta6_world::place(game_dir, path, openrage_app::gta6_world::AROUND, &show)?, + None => openrage_app::gta6_world::overview(game_dir, &show)?, + } + } else { + let w = world::load(game_dir, keys.clone())?; + let files = world::files(game_dir)?; + if check { + return check_maps(game_dir, &w, &files, keys, started); + } + let path = path.context("which map file? (or --check for all)")?; + world::load_map(&w, &files, game_dir, keys, path, &|done, total| show("loading models", done, total))? + }; + let path = path.unwrap_or("map"); eprintln!(); let placed: usize = scene.models.iter().map(|(_, _, t)| t.len()).sum(); outln!( @@ -421,10 +433,19 @@ pub(crate) fn cmd_clips(game_dir: &Path, path: &str, clip: Option<&str>, keys: O if t < 12 { let first = vals.first().copied().unwrap_or_default(); let mid = vals.get(vals.len() / 2).copied().unwrap_or_default(); + // GTA VI names bones and tracks by hash. + let name = if tr.bone_hash != 0 || tr.kind_hash != 0 { + let kind = rage_formats::clip6::kind_name(tr.kind_hash); + format!( + "{:08x} {}", + tr.bone_hash, + kind.map_or_else(|| format!("{:08x}", tr.kind_hash), str::to_owned) + ) + } else { + format!("{:04x} track {}", tr.bone, tr.track) + }; outln!( - " bone {:04x} track {} fmt {}: f0 [{:.3} {:.3} {:.3} {:.3}] mid [{:.3} {:.3} {:.3} {:.3}]", - tr.bone, - tr.track, + " bone {name} fmt {}: f0 [{:.3} {:.3} {:.3} {:.3}] mid [{:.3} {:.3} {:.3} {:.3}]", tr.format, first[0], first[1], @@ -491,6 +512,49 @@ pub(crate) fn cmd_audio(game_dir: &Path, path: &str, export: Option<&Path>, keys Ok(()) } +/// GTA VI: what a texture pool holds, and its textures as PNG. +pub(crate) fn cmd_ttpf( + path: &Path, + export: Option<&Path>, + from: usize, + count: Option, + max_side: Option, +) -> Result<()> { + let pool = rage_formats::ttpf::Pool::open(path)?; + outln!("{}: {} textures", path.display(), pool.len()); + if let Some(dir) = export { + fs::create_dir_all(dir)?; + } + let started = Instant::now(); + let (mut read, mut full) = (0u32, 0u32); + let mut skipped: std::collections::BTreeMap = Default::default(); + for index in (from..pool.len()).take(count.unwrap_or(usize::MAX)) { + let d = *pool.descriptor(index).context("texture")?; + let texture = match pool.texture(index, max_side) { + Ok(t) => t, + Err(e) => { + *skipped.entry(e.to_string()).or_default() += 1; + continue; + } + }; + read += 1; + full += u32::from(texture.width == d.width && texture.height == d.height); + let Some(dir) = export else { continue }; + match texture.to_rgba() { + Some(rgba) => fs::write( + dir.join(format!("{index:06}.png")), + rage_formats::png(texture.width, texture.height, &rgba)?, + )?, + None => *skipped.entry(format!("no decoder for format {}", texture.format.name())).or_default() += 1, + } + } + outln!("Read: {read} ({full} at full size) in {} ms", started.elapsed().as_millis()); + for (reason, n) in skipped { + outln!("Not read: {n} β€” {reason}"); + } + Ok(()) +} + pub(crate) fn cmd_xml( game_dir: &Path, path: &str, @@ -543,16 +607,54 @@ pub(crate) fn cmd_xml( Ok(()) } -pub(crate) fn cmd_media(game_dir: &Path, path: &str, swf: Option<&Path>, keys: Option>) -> Result<()> { +pub(crate) fn cmd_media( + game_dir: &Path, + path: &str, + frames: Option<&Path>, + every: usize, + wav: Option<&Path>, + swf: Option<&Path>, + keys: Option>, +) -> Result<()> { let (node, _) = rage_mods::resolve(game_dir, path, keys)?; let data = match node { Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => fs::read(p)?, + Node::Rpf8File(rpf, i) => { + rpf.read(rpf.entries().and_then(|e| e.get(i)).context("archive table not readable")?)? + } + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, + Node::Gta4File(a, id) => a.read(id)?, _ => bail!("{path} is not a file"), }; - for (k, v) in openrage_app::media::rows(path, &data)? { + for (k, v) in openrage_app::media::rows(&data)? { outln!("{k:<14}{v}"); } + if let Some(dir) = frames { + let mut player = rage_formats::bink::Player::new(&data)?; + fs::create_dir_all(dir)?; + let total = player.video.frames(); + for i in 0..total { + player.advance().with_context(|| format!("frame {i}"))?; + if i % every.max(1) == 0 { + let f = player.frame(); + fs::write(dir.join(format!("{i:05}.png")), rage_formats::png(f.width, f.height, &f.rgba())?)?; + } + } + outln!("Wrote {} of {total} frames to {}", total.div_ceil(every.max(1)), dir.display()); + } + if let Some(out) = wav { + let video = rage_formats::bink::read(&data)?; + if video.tracks.is_empty() { + bail!("{path} has no sound"); + } + for i in 0..video.tracks.len() { + let Some(pcm) = video.sound(&data, i) else { continue }; + let file = if i == 0 { out.to_path_buf() } else { out.with_extension(format!("{}.wav", i + 1)) }; + fs::write(&file, pcm?.to_wav())?; + outln!("Wrote {}", file.display()); + } + } if let Some(out) = swf { fs::write(out, rage_formats::media::gfx_to_swf(&data)?)?; outln!("Wrote {}", out.display()); diff --git a/crates/openrage-cli/src/main.rs b/crates/openrage-cli/src/main.rs index 5fbedd6..b730329 100644 --- a/crates/openrage-cli/src/main.rs +++ b/crates/openrage-cli/src/main.rs @@ -107,6 +107,10 @@ fn run() -> Result<()> { return Ok(()); } + if let Command::Ttpf { path, export, from, count, max_side } = &cli.command { + return cmd_ttpf(path, export.as_deref(), *from, *count, *max_side); + } + if let Command::Rpf8 { path, list, textures, models, text, meta, rebuild, audio, anims } = &cli.command { let checks = Checks { textures: *textures, @@ -159,10 +163,30 @@ fn run() -> Result<()> { eprintln!("warning: {e}"); None }); + // GTA VI archives are read through once to find their files; say so. + openrage_app::rpf9::register(Arc::new(|step| { + use std::io::IsTerminal; + static SHOWN: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(u64::MAX); + let err = std::io::stderr(); + match step { + Some((name, 0, _)) => { + eprintln!("Indexing {name}: reading the whole archive once, the result is kept for next time."); + } + Some((_, done, total)) if err.is_terminal() && total > 0 => { + let percent = done * 100 / total; + if SHOWN.swap(percent, std::sync::atomic::Ordering::Relaxed) != percent { + eprint!("\r{percent:>3} %"); + } + } + None if err.is_terminal() => eprint!("\r \r"), + _ => {} + } + })); match cli.command { Command::Keys { .. } | Command::Rpf8 { .. } + | Command::Ttpf { .. } | Command::Rdr2Keys { .. } | Command::Rdr2Names { .. } | Command::Licenses { .. } => { @@ -172,6 +196,46 @@ fn run() -> Result<()> { Command::Info { path } => cmd_info(&game_dir, &path, keys), Command::Extract { path, out, expand_archives } => cmd_extract(&game_dir, &path, &out, expand_archives, keys), Command::Find { pattern, r#in } => cmd_find(&game_dir, &r#in, &pattern, keys), + Command::Verify { + path, + textures, + models, + audio, + animations, + meta, + text, + particles, + collisions, + paths, + scripts, + media, + cutscenes, + rebuild, + openformats, + } if openrage_app::detect::is_gta6_dir(&game_dir) => { + if textures + || models + || audio + || meta + || text + || particles + || collisions + || paths + || scripts + || media + || cutscenes + || rebuild + || openformats + { + bail!( + "GTA VI verification checks archive data, or clip dictionaries with --animations; use `verify ` without other format or rebuild flags" + ); + } + if animations { + return cmd_verify_animations(&game_dir, &path, keys); + } + cmd_verify(&game_dir, &path, keys) + } Command::Verify { path, models: true, .. } if gta4 => cmd_verify_gta4_models(&game_dir, &path), Command::Verify { path, models: true, openformats: true, .. } => cmd_verify_openformats(&game_dir, &path, keys), Command::Verify { path, models: true, rebuild: true, .. } => cmd_verify_model_writer(&game_dir, &path, keys), @@ -269,7 +333,9 @@ fn run() -> Result<()> { outln!("Imported {n} native names; script disassemblies now show them."); Ok(()) } - Command::Media { path, swf } => cmd_media(&game_dir, &path, swf.as_deref(), keys), + Command::Media { path, frames, every, wav, swf } => { + cmd_media(&game_dir, &path, frames.as_deref(), every, wav.as_deref(), swf.as_deref(), keys) + } Command::Script { path, out, strings } => cmd_script(&game_dir, &path, out.as_deref(), strings, keys), Command::Particles { path } => cmd_particles(&game_dir, &path, keys), Command::Text { path, out, import: None } => cmd_text(&game_dir, &path, out.as_deref(), keys), diff --git a/crates/openrage-gui/src/audio.rs b/crates/openrage-gui/src/audio.rs index 2db2c76..df07708 100644 --- a/crates/openrage-gui/src/audio.rs +++ b/crates/openrage-gui/src/audio.rs @@ -1,16 +1,76 @@ //! Playing decoded sounds and drawing their waveform. +use std::cell::Cell; use std::num::NonZero; use std::sync::Arc; -use std::time::Duration; +use std::time::{Duration, Instant}; use rage_formats::awc::Pcm; -/// The audio output, opened on first use and kept while sounds play. +/// Plays decoded samples without copying them. +struct Samples { + pcm: Arc, + next: usize, +} + +impl Samples { + fn channel_count(&self) -> usize { + self.pcm.channels.max(1) as usize + } +} + +impl Iterator for Samples { + type Item = rodio::Sample; + + fn next(&mut self) -> Option { + let sample = *self.pcm.samples.get(self.next)?; + self.next += 1; + Some(rodio::Sample::from(sample) / 32768.0) + } + + fn size_hint(&self) -> (usize, Option) { + let left = self.pcm.samples.len().saturating_sub(self.next); + (left, Some(left)) + } +} + +impl rodio::Source for Samples { + fn current_span_len(&self) -> Option { + None + } + + fn channels(&self) -> NonZero { + NonZero::new(self.pcm.channels).unwrap_or(NonZero::::MIN) + } + + fn sample_rate(&self) -> NonZero { + NonZero::new(self.pcm.sample_rate).unwrap_or(NonZero::::MIN) + } + + fn total_duration(&self) -> Option { + Some(Duration::from_secs_f32(self.pcm.duration_secs())) + } + + fn try_seek(&mut self, pos: Duration) -> Result<(), rodio::source::SeekError> { + let frame = (pos.as_secs_f64() * f64::from(self.pcm.sample_rate)) as usize; + self.next = frame.saturating_mul(self.channel_count()).min(self.pcm.samples.len()); + Ok(()) + } +} + +/// Something playing, opened on first use and kept while it plays. pub struct Output { - _sink: rodio::MixerDeviceSink, - player: rodio::Player, pcm: Arc, + player: Player, +} + +enum Player { + Device { + player: rodio::Player, + _sink: rodio::MixerDeviceSink, + }, + /// No sound: a clock. Where it stood, and since when it runs. + Clock(Cell<(Duration, Option)>), } impl Output { @@ -19,15 +79,17 @@ impl Output { let mut sink = rodio::DeviceSinkBuilder::open_default_sink().map_err(|e| e.to_string())?; sink.log_on_drop(false); let player = rodio::Player::connect_new(sink.mixer()); - let channels = NonZero::new(pcm.channels.max(1)).expect("non-zero"); - let rate = NonZero::new(pcm.sample_rate.max(1)).expect("non-zero"); - let samples: Vec = pcm.samples.iter().map(|&s| s as rodio::Sample / 32768.0).collect(); - player.append(rodio::buffer::SamplesBuffer::new(channels, rate, samples)); + player.append(Samples { pcm: Arc::clone(&pcm), next: 0 }); if !start.is_zero() { let _ = player.try_seek(start); } player.play(); - Ok(Self { _sink: sink, player, pcm }) + Ok(Self { pcm, player: Player::Device { player, _sink: sink } }) + } + + /// The same without sound, for what is not only heard. + pub fn silent(pcm: Arc, start: Duration) -> Self { + Self { pcm, player: Player::Clock(Cell::new((start, Some(Instant::now())))) } } pub fn pcm(&self) -> &Arc { @@ -35,27 +97,56 @@ impl Output { } pub fn is_playing(&self) -> bool { - !self.player.is_paused() && !self.player.empty() + match &self.player { + Player::Device { player: p, .. } => !p.is_paused() && !p.empty(), + Player::Clock(c) => c.get().1.is_some() && !self.finished(), + } } pub fn finished(&self) -> bool { - self.player.empty() + match &self.player { + Player::Device { player: p, .. } => p.empty(), + Player::Clock(_) => self.position().as_secs_f32() >= self.pcm.duration_secs(), + } } pub fn pause(&self) { - self.player.pause(); + match &self.player { + Player::Device { player: p, .. } => p.pause(), + Player::Clock(c) => c.set((self.position(), None)), + } } pub fn resume(&self) { - self.player.play(); + match &self.player { + Player::Device { player: p, .. } => p.play(), + Player::Clock(c) => c.set((self.position(), Some(Instant::now()))), + } + } + + pub fn set_volume(&self, volume: f32) { + if let Player::Device { player: p, .. } = &self.player { + p.set_volume(volume); + } } pub fn seek(&self, pos: Duration) { - let _ = self.player.try_seek(pos); + match &self.player { + Player::Device { player: p, .. } => { + let _ = p.try_seek(pos); + } + Player::Clock(c) => c.set((pos, c.get().1.map(|_| Instant::now()))), + } } pub fn position(&self) -> Duration { - self.player.get_pos() + match &self.player { + Player::Device { player: p, .. } => p.get_pos(), + Player::Clock(c) => { + let (at, since) = c.get(); + at + since.map_or(Duration::ZERO, |s| s.elapsed()) + } + } } } @@ -89,3 +180,31 @@ pub fn waveform(pcm: &Pcm, width: usize, height: usize, color: [u8; 3]) -> Vec Color { pub const NEUTRAL: Color = rgb(0x7C8592); fn extension(name: &str) -> String { - name.rsplit_once('.').map(|(_, e)| e.to_ascii_lowercase()).unwrap_or_default() + let ext = name.rsplit_once('.').map(|(_, e)| e.to_ascii_lowercase()).unwrap_or_default(); + // GTA VI's `#dr` is what GTA V's `ydr` was, and so on. + match ext.strip_prefix('#') { + Some(rest) => format!("y{rest}"), + None => ext, + } } /// Icon (a name known to the UI's `Icons.get`) and tint for a file, so @@ -42,15 +47,15 @@ fn core_icon(ext: &str) -> Option<(&'static str, Color)> { "ydr" | "ydd" | "yft" | "yld" | "wdr" | "wdd" | "wft" => ("model", rgb(0x3B82F6)), "ypt" => ("particles", rgb(0xE0679B)), "ybn" | "wbn" | "wbd" => ("collision", rgb(0x14A08F)), - "ynv" | "ynd" | "yvr" | "ywr" | "nod" => ("path", rgb(0x14A08F)), + "ynv" | "ynvs" | "ycov" | "ynd" | "yvr" | "ywr" | "nod" => ("path", rgb(0x14A08F)), "ymap" | "wpl" | "ytyp" | "ipl" | "ide" => ("map", rgb(0x2FA866)), - "ymt" | "ymf" | "meta" | "xml" | "dat" | "json" | "pso" => ("data", rgb(0x2FA866)), + "ymt" | "ymf" | "yhdat" | "ymsk" | "ykit" | "meta" | "xml" | "dat" | "json" | "pso" => ("data", rgb(0x2FA866)), "cut" => ("anim", rgb(0xDB4F8A)), "txt" | "log" | "ini" | "cfg" => ("text", rgb(0x7C8592)), - "ycd" | "yed" => ("anim", rgb(0xDB4F8A)), + "ycd" | "yed" | "yas" | "yascd" | "ysmm" => ("anim", rgb(0xDB4F8A)), "awc" | "rel" | "dat151" | "dat54" | "dat4" | "dat10" | "dat15" | "dat16" | "dat22" => ("audio", rgb(0xDB4F8A)), - "ysc" | "sco" | "asi" | "dll" | "lua" | "cs" => ("script", rgb(0xE05252)), - "gxt2" | "gxt" => ("lang", rgb(0x5B76DE)), + "ysc" | "yscript" | "sco" | "asi" | "dll" | "lua" | "cs" => ("script", rgb(0xE05252)), + "gxt2" | "gxt" | "yldb" | "yldbmt" => ("lang", rgb(0x5B76DE)), "oiv" | "orp" | "zip" | "7z" | "rar" => ("package", rgb(0xD9822B)), _ => return None, }) @@ -96,6 +101,7 @@ pub fn type_name(name: &str, kind: ItemKind) -> String { } else if ext.is_empty() { "File".into() } else { + let ext = name.rsplit_once('.').map_or(ext.as_str(), |(_, e)| e); format!("{} file", ext.to_ascii_uppercase()) } } @@ -110,7 +116,11 @@ fn known_name(ext: &str) -> &'static str { "ypt" => "Particles", "ybn" | "wbn" => "Bounds", "wbd" => "Bounds dict", - "ynv" => "Nav mesh", + "ynv" | "ynvs" => "Nav mesh", + "ycov" => "Cover", + "yscript" => "Script", + "yldb" | "yldbmt" => "Text table", + "yhdat" => "Height data", "ynd" => "Path nodes", "ymap" | "wpl" => "Map placement", "ytyp" => "Archetypes", @@ -125,7 +135,7 @@ fn known_name(ext: &str) -> &'static str { "awc" => "Audio container", "gxt2" | "gxt" => "Text table", "gfx" => "Scaleform movie", - "bik" => "Bink video", + "bik" | "bk2" => "Bink video", "nametable" => "Name table", "ugc" => "UGC (JSON)", "orp" => "OpenRAGE plugin", diff --git a/crates/openrage-gui/src/browser.rs b/crates/openrage-gui/src/browser.rs index 5e090dc..4b839d3 100644 --- a/crates/openrage-gui/src/browser.rs +++ b/crates/openrage-gui/src/browser.rs @@ -82,6 +82,8 @@ pub enum Location { Archive(Arc, EntryId), /// A folder inside a Red Dead Redemption 2 archive (read-only). Rpf8(Arc, String), + /// A folder of a GTA VI archive (read-only). + Rpf9(Arc, String), /// A folder inside a GTA IV archive (`.img`, RPF2/RPF3; read-only). Gta4(Arc, rage_rpf::Gta4EntryId), /// Results of a search; `summary` describes hash lookups etc. @@ -108,6 +110,12 @@ pub enum Location { }, } +/// Whether a file name is a video the preview plays. +pub fn is_video(name: &str) -> bool { + let lower = name.to_ascii_lowercase(); + lower.ends_with(".bk2") || lower.ends_with(".bik") +} + /// Whether a file name is an audio container that can be opened like a folder. pub fn is_audio(name: &str) -> bool { name.to_ascii_lowercase().ends_with(".awc") @@ -116,7 +124,72 @@ pub fn is_audio(name: &str) -> bool { /// Whether a file name is a texture dictionary that can be opened like a folder. pub fn is_texture_dict(name: &str) -> bool { let lower = name.to_ascii_lowercase(); - lower.ends_with(".ytd") || lower.ends_with(".ypt") || lower.ends_with(".wtd") + lower.ends_with(".ytd") || lower.ends_with(".ypt") || lower.ends_with(".wtd") || lower.ends_with(".#td") +} + +/// GTA VI texture pools (`.ttpf`): they open as folders of [`POOL_PAGE`] +/// textures each. +pub fn is_texture_pool(name: &str) -> bool { + name.to_ascii_lowercase().ends_with(".ttpf") +} + +/// Textures per folder of a texture pool: as many as are read at once. +const POOL_PAGE: usize = 64; + +/// For `…/pool.ttpf/000128-000191`: the pool's path and the first texture. +fn pool_page(vpath: &str) -> Option<(&str, usize)> { + let (pool, page) = vpath.rsplit_once('/')?; + let (from, to) = page.split_once('-')?; + let numeric = |s: &str| s.len() == 6 && s.bytes().all(|b| b.is_ascii_digit()); + (is_texture_pool(pool) && numeric(from) && numeric(to)).then(|| Some((pool, from.parse().ok()?))).flatten() +} + +fn pool_error(vpath: &str, e: rage_formats::ttpf::TtpfError) -> RpfError { + RpfError::BadResource { path: vpath.to_owned(), reason: e.to_string() } +} + +/// A texture pool: its pages as folders. +fn list_pool(vpath: String, file: &Path, origin: Origin) -> Result { + let pool = rage_formats::ttpf::Pool::open(file).map_err(|e| pool_error(&vpath, e))?; + let items = (0..pool.len()) + .step_by(POOL_PAGE) + .map(|from| { + let to = (from + POOL_PAGE).min(pool.len()) - 1; + Item { + name: format!("{from:06}-{to:06}"), + kind: ItemKind::Dir, + size: 0, + info: format!("{} textures", to - from + 1), + entry: None, + vpath: None, + mark: None, + detail: None, + } + }) + .collect(); + Ok(Listing { vpath, origin, location: Location::Disk(file.to_path_buf()), items }) +} + +/// A page of a texture pool as a texture dictionary (read-only). Textures +/// that cannot be read are left out and counted in the dictionary's errors. +fn list_pool_page(vpath: String, file: &Path, from: usize, origin: Origin) -> Result { + let pool = rage_formats::ttpf::Pool::open(file).map_err(|e| pool_error(&vpath, e))?; + let (mut textures, mut errors) = (Vec::new(), Vec::new()); + for index in (from..pool.len()).take(POOL_PAGE) { + match pool.texture(index, None) { + Ok(t) => textures.push(t), + Err(e) => errors.push(format!("{index:06}: {e}")), + } + } + let dict = rage_formats::ytd::TextureDictionary { + textures, + errors, + layout: rage_formats::ytd::Layout::Enhanced, + version: 0, + root: Vec::new(), + stored: Vec::new(), + }; + Ok(texture_listing(vpath, dict, origin, true)) } /// Particle dictionaries open like texture dictionaries, read-only. @@ -244,6 +317,17 @@ pub fn list( let (listing, _) = list(game_dir, &dict_path, keys, overlay)?; return Ok((listing, Some(last_segment(&vpath)))); } + // `…/pool.ttpf/000000-000063`: a page of a GTA VI texture pool. + Err(_) if pool_page(&vpath).is_some() => { + let (pool, from) = pool_page(&vpath).unwrap_or_default(); + let (Node::PlainFile(file), origin) = resolve(pool)? else { return Err(RpfError::NotFound(vpath)) }; + return Ok((list_pool_page(vpath.clone(), &file, from, origin)?, None)); + } + // `…/pool.ttpf/000000-000063/000012`: that page, with the texture selected. + Err(_) if parent(&vpath).is_some_and(|p| pool_page(&p).is_some()) => { + let (listing, _) = list(game_dir, &parent(&vpath).unwrap_or_default(), keys, overlay)?; + return Ok((listing, Some(last_segment(&vpath)))); + } // `…/model/textures`: the textures inside a model (GTA IV .wdr, GTA V .ydr/.yft/.ydd). Err(RpfError::NotFound(_)) if model_of_textures(&vpath).is_some() => { let model = model_of_textures(&vpath).unwrap_or_default(); @@ -297,6 +381,18 @@ pub fn list( .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; Ok((audio_listing(vpath, awc, origin), None)) } + Node::PlainFile(file) if is_texture_pool(&vpath) => Ok((list_pool(vpath, &file, origin)?, None)), + Node::Rpf9Dir(rpf, dir) => Ok((list_rpf9(vpath, rpf, dir, origin)?, None)), + Node::Rpf9File(rpf, i) if is_texture_dict(&vpath) => { + let dict = openrage_app::textures::gta6_dictionary(&rpf, i) + .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; + Ok((texture_listing(vpath, dict, origin, true), None)) + } + Node::Rpf9File(rpf, i) if is_audio(&vpath) => { + let awc = rage_formats::awc::Awc::parse(rpf.read_at(i)?, None) + .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; + Ok((audio_listing(vpath, awc, origin), None)) + } Node::Gta4Dir(a, dir) => Ok((list_gta4(vpath, a, dir, origin), None)), // An RDR2 dictionary replaced in lml/replace: a loose RSC8 file. Node::PlainFile(p) if is_texture_dict(&vpath) && rage_mods::overlay::is_rdr2(game_dir) => { @@ -516,6 +612,7 @@ fn list_disk(vpath: String, dir: PathBuf, origin: Origin) -> Result, dir: String, origin: Origi Listing { vpath, origin, location: Location::Rpf8(rpf, dir), items } } +/// A folder of a GTA VI archive. In the recovery view files are named by their +/// offset, in folders by what they look like. +fn list_rpf9(vpath: String, rpf: Arc, dir: String, origin: Origin) -> Result { + let entries = rpf.entries()?; + let (dirs, files) = rpf.list_dir(&entries, &dir); + let item = |name: String, kind, size, info| Item { + name, + kind, + size, + info, + entry: None, + vpath: None, + mark: None, + detail: None, + }; + let mut items: Vec = dirs.into_iter().map(|name| item(name, ItemKind::Dir, 0, String::new())).collect(); + for i in files { + let e = &entries[i]; + let full = rpf.entry_name(e); + let info = match e.kind { + rage_rpf::rpf9::Kind::Bink2 => "video".to_owned(), + rage_rpf::rpf9::Kind::Awc => "sounds".to_owned(), + rage_rpf::rpf9::Kind::Zlib if e.streams > 1 => format!("{} chunks", e.streams), + _ => String::new(), + }; + // The entries known to be models open in the viewer. + let kind = if rpf.is_archive(e) { + ItemKind::Archive + } else if openrage_app::models::is_model(&full) || rpf.resource_parts(e).is_some() { + ItemKind::Resource + } else { + ItemKind::File + }; + items.push(item(full.rsplit('/').next().unwrap_or(&full).to_owned(), kind, e.size, info)); + } + Ok(Listing { vpath, origin, location: Location::Rpf9(rpf, dir), items }) +} + /// A folder of a GTA IV archive: its folders, files and resources. fn list_gta4(vpath: String, a: Arc, dir: rage_rpf::Gta4EntryId, origin: Origin) -> Listing { let items = a diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index bb72f06..02d61be 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -95,6 +95,7 @@ fn wire_files(ui: &AppWindow) { if ui.get_file_selected() == i && with_app(|a| a.selected.is_some()) { return; } + with_app(|a| a.play_when_ready = false); select_row(ui, i as usize) }) }); @@ -170,19 +171,44 @@ fn wire_files(ui: &AppWindow) { open_script_view(ui, vpath); return; } - let video = with_app(|a| { + let is_video = with_app(|a| { let listing = a.listing.as_ref()?; let item = &listing.items[*a.visible.get(i as usize)?]; - item.name - .to_ascii_lowercase() - .ends_with(".bik") - .then(|| item.vpath.clone().unwrap_or_else(|| browser::join(&listing.vpath, &item.name))) + Some(item.kind == ItemKind::File && browser::is_video(&item.name) && item.mark != Some(Mark::Removed)) }); - if let Some(vpath) = video { - // Video players built on FFmpeg (VLC, mpv, …) play Bink. - open_with_system(ui, vpath); + // Or a file without a name that turned out to be one. + if is_video == Some(true) || (ui.get_file_selected() == i && ui.get_video_mode()) { + if ui.get_file_selected() != i { + select_row(ui, i as usize); + } + player::open_selected(ui); + return; + } + if ui.get_file_selected() == i && ui.get_preview_loading() && may_be_video(i as usize) { + with_app(|a| a.play_when_ready = true); return; } + // An audio container with one sound: the row plays it (it is + // selected, so the sound is loaded or about to be). + let is_container = with_app(|a| { + let listing = a.listing.as_ref()?; + let item = &listing.items[*a.visible.get(i as usize)?]; + Some(item.kind == ItemKind::File && item.vpath.is_none() && browser::is_audio(&item.name)) + }); + if is_container == Some(true) { + if ui.get_file_selected() != i { + select_row(ui, i as usize); + } + if ui.get_audio_mode() { + toggle_sound(ui); + return; + } + // Still decoding; a container with several has its list by now. + if ui.get_preview_loading() { + with_app(|a| a.play_when_ready = true); + return; + } + } let is_ycd = with_app(|a| { let listing = a.listing.as_ref()?; Some(is_clip_dictionary(&listing.items[*a.visible.get(i as usize)?])) @@ -468,6 +494,7 @@ fn wire_settings(ui: &AppWindow) { accent::apply(&ui); } viewer::set_accent(); + player::set_accent(); editor::set_accent(); xmlview::set_accent(); history::set_accent(); @@ -481,6 +508,7 @@ fn wire_settings(ui: &AppWindow) { accent::apply(&ui); } viewer::set_accent(); + player::set_accent(); editor::set_accent(); xmlview::set_accent(); history::set_accent(); @@ -497,6 +525,7 @@ fn wire_settings(ui: &AppWindow) { with_app(|a| a.cfg.theme = Some(theme_name(mode).to_owned())); with_ui(&w, save_settings); viewer::set_theme(mode); + player::set_theme(mode); editor::set_theme(mode); xmlview::set_theme(mode); history::set_theme(mode); @@ -516,6 +545,14 @@ fn wire_settings(ui: &AppWindow) { /// Sound playback. fn wire_sound(ui: &AppWindow) { + let w = ui.as_weak(); + ui.on_open_world_map(move || with_ui(&w, |ui| scene::open_map(ui, String::new()))); + let w = ui.as_weak(); + ui.on_open_player(move || with_ui(&w, player::open_selected)); + let w = ui.as_weak(); + ui.on_index_stop(move || with_ui(&w, stop_index_update)); + let w = ui.as_weak(); + ui.on_index_resume(move || with_ui(&w, start_index_update)); let w = ui.as_weak(); ui.on_audio_toggle(move || with_ui(&w, toggle_sound)); let w = ui.as_weak(); @@ -687,6 +724,8 @@ fn wire_setup(ui: &AppWindow) { }); let w = ui.as_weak(); ui.on_setup_run(move || with_ui(&w, run_setup)); + let w = ui.as_weak(); + ui.on_setup_leave(move || with_ui(&w, leave_setup)); } pub(crate) fn theme_name(mode: i32) -> &'static str { @@ -744,6 +783,7 @@ pub(crate) fn row_action(ui: &AppWindow, row: usize, action: &str) { } match action { "open" => ui.invoke_file_open(row as i32), + "play" => player::open_selected(ui), "view" => open_viewer(ui), "edit" | "system" => { let vpath = with_app(|a| { diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index dfc34f5..e54cddc 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -1,5 +1,6 @@ //! Debug snapshots of the window (`OPENRAGE_DEBUG_*`), for checking the UI without a screen. +#[cfg(debug_assertions)] use crate::*; /// Development aid (debug builds only): `OPENRAGE_SNAPSHOT=out.png` saves an @@ -13,7 +14,9 @@ pub(crate) fn debug_snapshot(ui: &AppWindow) { } let Ok(path) = std::env::var("OPENRAGE_SNAPSHOT") else { return }; let weak = ui.as_weak(); - slint::Timer::single_shot(Duration::from_secs(5), move || { + // `OPENRAGE_SNAPSHOT_DELAY=`: for folders that open slowly. + let delay = std::env::var("OPENRAGE_SNAPSHOT_DELAY").ok().and_then(|s| s.parse().ok()).unwrap_or(5); + slint::Timer::single_shot(Duration::from_secs(delay), move || { let Some(ui) = weak.upgrade() else { return }; debug_viewer(&ui); if std::env::var("OPENRAGE_FLY").is_ok() @@ -54,6 +57,10 @@ pub(crate) fn debug_snapshot(ui: &AppWindow) { }); if let Some(row) = row { select_row(&ui, row); + // `OPENRAGE_PLAY=1` plays the selected sound or video. + if std::env::var("OPENRAGE_PLAY").is_ok() { + with_app(|a| a.play_when_ready = true); + } // `OPENRAGE_PLUGIN_RUN=` runs the selected file's n-th plugin action. if let Ok(i) = std::env::var("OPENRAGE_PLUGIN_RUN") { row_action(&ui, row, &format!("plugin:{i}")); @@ -206,6 +213,8 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { let lower = map.to_ascii_lowercase(); if lower.ends_with(".wpl") || lower.ends_with(".img") { scene::open_map(ui, map); + } else if lower == "world" { + scene::open_map(ui, String::new()); // GTA VI's whole map } else { open_xml_view(ui, map); if let Some(x) = xmlview::newest() { @@ -215,12 +224,25 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { let waiting = std::rc::Rc::new(slint::Timer::default()); let (started, timer) = (Instant::now(), std::rc::Rc::clone(&waiting)); waiting.start(slint::TimerMode::Repeated, Duration::from_millis(500), move || { - if !scene::ready() && started.elapsed() < Duration::from_secs(180) { + if !scene::ready() && started.elapsed() < Duration::from_secs(600) { return; } timer.stop(); let path = path.clone(); - slint::Timer::single_shot(Duration::from_millis(800), move || { + // `OPENRAGE_FLY_TO=x,y,z,yaw,pitch`, and `OPENRAGE_FLY_WAIT=` for the details to load. + let to: Vec = std::env::var("OPENRAGE_FLY_TO") + .map(|t| t.split(',').filter_map(|v| v.parse().ok()).collect()) + .unwrap_or_default(); + let mut wait = 800; + if let Ok(to) = <[f32; 5]>::try_from(to) { + scene::fly_to(to); + wait += std::env::var("OPENRAGE_FLY_WAIT").ok().and_then(|s| s.parse().ok()).unwrap_or(20) * 1000; + } + slint::Timer::single_shot(Duration::from_millis(wait), move || { + // `OPENRAGE_BENCH=`: how long they take. + if let Some(n) = std::env::var("OPENRAGE_BENCH").ok().and_then(|n| n.parse().ok()) { + scene::bench(n); + } if let Some(Ok(img)) = scene::newest().map(|w| w.window().take_snapshot()) { let _ = rage_formats::png(img.width(), img.height(), img.as_bytes()) .map(|png| std::fs::write(&path, png)); @@ -282,6 +304,7 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { slint::Timer::single_shot(Duration::from_secs(wait), move || { let Some(ui) = weak.upgrade() else { return }; let snap = match (viewer::newest(), editor::newest(), history::window()) { + _ if let Some(p) = player::newest() => p.window().take_snapshot(), _ if let Some(x) = xmlview::newest() => { if let Ok(tab) = std::env::var("OPENRAGE_TAB") { x.set_tab(tab.parse().unwrap_or(0)); diff --git a/crates/openrage-gui/src/docs.rs b/crates/openrage-gui/src/docs.rs index 7c8dee8..e163d4a 100644 --- a/crates/openrage-gui/src/docs.rs +++ b/crates/openrage-gui/src/docs.rs @@ -7,7 +7,12 @@ pub(crate) fn read_file(ui: &AppWindow, vpath: &str) -> anyhow::Result> let _ = ui; let (game_dir, keys) = with_app(|a| (a.game_dir.clone(), a.keys.clone())); let game_dir = game_dir.ok_or_else(|| anyhow::anyhow!("no game folder"))?; - match rage_mods::resolve(&game_dir, vpath, keys)?.0 { + read_vpath(&game_dir, vpath, keys) +} + +/// Reads a file off the UI thread. +pub(crate) fn read_vpath(game_dir: &Path, vpath: &str, keys: Option>) -> anyhow::Result> { + match rage_mods::resolve(game_dir, vpath, keys)?.0 { Node::ArchiveFile(rpf, id) => Ok(rpf.read(id)?), Node::PlainFile(p) => Ok(std::fs::read(p)?), Node::Rpf8File(rpf, i) => { @@ -16,6 +21,7 @@ pub(crate) fn read_file(ui: &AppWindow, vpath: &str) -> anyhow::Result> Ok(rpf.read(entry)?) } Node::Gta4File(a, id) => Ok(a.read(id)?), + Node::Rpf9File(rpf, i) => Ok(rpf.read_at(i)?), _ => anyhow::bail!("{vpath} is not a file"), } } @@ -53,8 +59,25 @@ pub(crate) fn open_text_file(ui: &AppWindow, vpath: String) { open_text_data(ui, vpath, &data); } +/// A table of strings that each end with a zero byte (GTA VI keeps texts +/// that way), one string per line; `None` for anything else. +pub(crate) fn zero_ended_strings(data: &[u8]) -> Option> { + let text = std::str::from_utf8(data).ok()?; + let plain = |c: char| !c.is_control() || matches!(c, '\0' | '\t' | '\r' | '\n'); + (text.contains('\0') && text.chars().all(plain)).then(|| { + let lines: Vec = text.trim_end_matches('\0').split('\0').map(|s| s.replace('\n', "\\n")).collect(); + lines.join("\n").into_bytes() + }) +} + pub(crate) fn open_text_data(ui: &AppWindow, vpath: String, data: &[u8]) { - match editor::Document::from_file(vpath.clone(), data) { + let opened = editor::Document::from_file(vpath.clone(), data).or_else(|e| { + let mut doc = + zero_ended_strings(data).and_then(|lines| editor::Document::from_bytes(vpath.clone(), &lines)).ok_or(e)?; + doc.locked_reason = "A table of strings, shown one per line for reading.".into(); + Ok::<_, String>(doc) + }); + match opened { Ok(doc) => { editor::open(ui, doc); ui.set_status(SharedString::new()); @@ -146,10 +169,10 @@ pub(crate) fn open_script_view(ui: &AppWindow, vpath: String) { /// Reads a metadata file and converts it to XML. pub(crate) fn read_xml(ui: &AppWindow, vpath: &str) -> anyhow::Result { - // RDR2 keeps much of its metadata as resources, which the game's own + // RDR2 and GTA VI keep much of their metadata as resources, which the game's own // resolution reads; GTA V files are read like any other file. if let Some((dir, keys)) = with_app(|a| a.game_dir.clone().map(|d| (d, a.keys.clone()))) - && is_rdr2_dir(&dir) + && (is_rdr2_dir(&dir) || detect::is_gta6_dir(&dir)) { return openrage_app::metadata::load(&dir, keys, vpath); } diff --git a/crates/openrage-gui/src/extract_ui.rs b/crates/openrage-gui/src/extract_ui.rs index 23e0fd5..56ce5f1 100644 --- a/crates/openrage-gui/src/extract_ui.rs +++ b/crates/openrage-gui/src/extract_ui.rs @@ -61,6 +61,24 @@ pub(crate) fn start_extract(ui: &AppWindow) { }); return; } + // GTA VI: the selected file or folder of the recovery view, or the whole folder. + let gta6 = with_app(|a| { + let listing = a.listing.as_ref()?; + let Location::Rpf9(rpf, dir) = &listing.location else { return None }; + let item = a.selected.map(|s| &listing.items[s]); + let find = |name: &str| rpf.loaded().and_then(|entries| rpf.find(&entries, &browser::join(dir, name))); + Some(match item { + Some(item) if item.kind == ItemKind::Dir => (Arc::clone(rpf), browser::join(dir, &item.name), None), + Some(item) => (Arc::clone(rpf), dir.clone(), find(&item.name)), + None => (Arc::clone(rpf), dir.clone(), None), + }) + }); + if let Some((rpf, dir, file)) = gta6 { + spawn_extract(ui, move |out, cancel, progress| { + openrage_app::rpf9::extract(&rpf, &dir, file, out, false, cancel, progress) + }); + return; + } let target = with_app(|a| -> Result<(Arc, EntryId), String> { let listing = a.listing.as_ref().ok_or("nothing to extract")?; let item = a.selected.map(|s| &listing.items[s]); diff --git a/crates/openrage-gui/src/fly.rs b/crates/openrage-gui/src/fly.rs new file mode 100644 index 0000000..87f4841 --- /dev/null +++ b/crates/openrage-gui/src/fly.rs @@ -0,0 +1,148 @@ +//! The flying camera of the model and map views: W A S D and Q E move it, +//! dragging looks around, the wheel sets how fast it is. + +use std::collections::HashSet; +use std::time::Instant; + +use openrage_app::render::{self, Camera}; + +const MOVE_KEYS: [&str; 6] = ["w", "a", "s", "d", "q", "e"]; +/// With Shift. +const FAST: f32 = 4.0; +/// How much a notch of the wheel changes the speed. +const NOTCH: f32 = 1.25; +/// Metres a second. +const SLOWEST: f32 = 0.02; +const FASTEST: f32 = 20_000.0; + +pub struct Fly { + pub eye: [f32; 3], + yaw: f32, + pitch: f32, + /// Metres a second. + speed: f32, + /// Movement keys held down (lower-case), and whether Shift is held. + keys: HashSet, + fast: bool, + last_tick: Instant, +} + +impl Fly { + /// Starts where a camera is; `size` is how large what it looks at is. + pub fn new(camera: &Camera, size: f32) -> Self { + let f = camera.forward; + Self { + eye: camera.eye, + yaw: f[1].atan2(f[0]), + pitch: f[2].clamp(-1.0, 1.0).asin(), + speed: (size * 0.35).clamp(SLOWEST, FASTEST), + keys: HashSet::new(), + fast: false, + last_tick: Instant::now(), + } + } + + pub fn camera(&self, radius: f32) -> Camera { + render::fly_camera(self.eye, self.yaw, self.pitch, radius) + } + + /// Dragging, in pixels. + pub fn look(&mut self, dx: f32, dy: f32) { + self.yaw -= dx * 0.005; + self.pitch = (self.pitch - dy * 0.005).clamp(-1.55, 1.55); + } + + /// The wheel; `delta` is 120 for a notch. + pub fn wheel(&mut self, delta: f32) { + self.speed = (self.speed * NOTCH.powf(delta / 120.0)).clamp(SLOWEST, FASTEST); + } + + pub fn set_speed(&mut self, speed: f32) { + self.speed = speed.clamp(SLOWEST, FASTEST); + } + + /// How fast it is, to show. + pub fn speed_text(&self) -> String { + match self.speed { + v if v >= 1000.0 => format!("{:.1} km/s", v / 1000.0), + v if v >= 10.0 => format!("{v:.0} m/s"), + v => format!("{v:.2} m/s"), + } + } + + /// Whether the key moves the camera. + pub fn key_down(&mut self, key: &str, shift: bool) -> bool { + self.fast = shift; + let moves = MOVE_KEYS.contains(&key); + if moves { + if self.keys.is_empty() { + self.last_tick = Instant::now(); + } + self.keys.insert(key.to_owned()); + } + moves + } + + /// Whether a key is still held. + pub fn key_up(&mut self, key: &str, shift: bool) -> bool { + self.fast = shift; + self.keys.remove(key); + !self.keys.is_empty() + } + + pub fn release(&mut self) { + self.keys.clear(); + } + + /// Moves as long as the time since the last call. + pub fn tick(&mut self) { + let dt = self.last_tick.elapsed().as_secs_f32().min(0.1); + self.last_tick = Instant::now(); + let held = |k: &str| f32::from(u8::from(self.keys.contains(k))); + let (ahead, side, up) = (held("w") - held("s"), held("d") - held("a"), held("e") - held("q")); + let camera = self.camera(1.0); + let step = self.speed * if self.fast { FAST } else { 1.0 } * dt; + for k in 0..3 { + let up = if k == 2 { up } else { 0.0 }; + self.eye[k] += (camera.forward[k] * ahead + camera.right[k] * side + up) * step; + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn fly() -> Fly { + Fly::new(&render::fly_camera([1.0, 2.0, 3.0], 0.5, -0.2, 10.0), 100.0) + } + + #[test] + fn it_starts_where_the_camera_was() { + let from = render::fly_camera([1.0, 2.0, 3.0], 0.5, -0.2, 10.0); + let now = fly().camera(10.0); + assert_eq!(now.eye, from.eye); + assert!((0..3).all(|k| (now.forward[k] - from.forward[k]).abs() < 1e-5)); + } + + #[test] + fn the_wheel_changes_the_speed() { + let mut f = fly(); + let before = f.speed; + f.wheel(120.0); + assert!((f.speed / before - NOTCH).abs() < 1e-5); + (0..500).for_each(|_| f.wheel(120.0)); + assert_eq!(f.speed, FASTEST); + (0..500).for_each(|_| f.wheel(-120.0)); + assert_eq!(f.speed, SLOWEST); + } + + #[test] + fn keys() { + let mut f = fly(); + assert!(!f.key_down("x", false)); + assert!(f.key_down("w", false) && f.key_down("a", true)); + assert!(f.key_up("w", false)); + assert!(!f.key_up("a", false)); + } +} diff --git a/crates/openrage-gui/src/gpu.rs b/crates/openrage-gui/src/gpu.rs index e19c597..2dd169b 100644 --- a/crates/openrage-gui/src/gpu.rs +++ b/crates/openrage-gui/src/gpu.rs @@ -6,20 +6,23 @@ //! If no GPU is available, callers fall back to the software renderer. use std::cell::RefCell; -use std::collections::HashMap; -use std::sync::{Arc, Weak}; +use std::collections::{HashMap, HashSet}; +use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::{Arc, LazyLock, Mutex, Weak}; use openrage_app::gta4_effects::{Image, Sprite}; -use openrage_app::models::{LoadedModel, Look}; -use openrage_app::render::{Camera, Materials}; +use openrage_app::models::Look; +use openrage_app::render::{Camera, Image as Picture}; +use rage_formats::drawable::param; use rage_formats::math; +use rayon::prelude::*; use wgpu::util::DeviceExt; const SAMPLES: u32 = 4; -/// Bones the skinning matrices cover (16 KiB of uniforms, the downlevel limit). -const MAX_BONES: usize = 256; -/// Bytes of per-draw data: colour (vec4) and model matrix (mat4). -const DRAW_DATA: usize = 16 + 64; +/// The most bones the skinning matrices cover. +const MAX_BONES: usize = 1024; +/// Bytes of a bone's matrix. +const BONE: u32 = 64; const COLOR_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8Unorm; const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float; @@ -37,6 +40,20 @@ struct Globals { // xyz: viewing direction (headlight), w: number of lights forward: vec4, lights: array, + // Outdoors. xyz: where the camera is, w: how fast things fade into the + // distance (per metre). + eye: vec4, + // The directions to the right and upper edge of the picture, w: there is a sky. + right: vec4, + up: vec4, + // Towards the light, w: seconds, for what moves. + sun: vec4, + // Its colour, w: how much lamps shine. + sun_colour: vec4, + ambient: vec4, + zenith: vec4, + horizon: vec4, + below: vec4, }; @group(0) @binding(0) var globals: Globals; @group(1) @binding(0) var tex: texture_2d; @@ -44,23 +61,114 @@ struct Globals { // Overlay drawn over the base colour with its alpha, on the second UV set // (vehicle liveries and signs); transparent when there is none. @group(1) @binding(2) var overlay: texture_2d; -// Per draw: material colour (multiplied with the texture) and the model's -// placement in the scene. -struct DrawData { - tint: vec4, - model: mat4x4, -}; -@group(2) @binding(0) var draw: DrawData; +// Flat and black when there is none. +@group(1) @binding(3) var normal_map: texture_2d; +@group(1) @binding(4) var specular_map: texture_2d; // Skinning matrices per skeleton bone (identity when not animated). -@group(3) @binding(0) var skin: array, 256>; +@group(2) @binding(0) var skin: array, {BONES}>; + +// What a placement's colour says it is (its alpha). +const WATER: f32 = 2.0; +const LAMP: f32 = 3.0; + +fn sky_colour(dir: vec3) -> vec3 { + var c = mix(globals.horizon.rgb, globals.zenith.rgb, pow(clamp(dir.z, 0.0, 1.0), 0.55)); + c = mix(c, globals.below.rgb, smoothstep(0.0, 0.25, -dir.z)); + let near = max(dot(dir, globals.sun.xyz), 0.0); + return c + globals.sun_colour.rgb * (1.6 * pow(near, 1500.0) + 0.16 * pow(near, 12.0)); +} + +// The surface of water: waves that fade with the distance. +fn water_colour(world: vec3) -> vec3 { + let to_eye = globals.eye.xyz - world; + let far = length(to_eye); + let v = to_eye / max(far, 0.001); + let t = globals.sun.w; + var slope = vec2(0.0); + var dir = vec2(0.8, 0.6); + var long = 0.045; + var high = 0.05; + for (var i = 0; i < 6; i = i + 1) { + let fade = exp(-far * long * 0.05); + slope = slope + dir * cos(dot(world.xy, dir) * long * 6.2832 + t * (0.6 + f32(i) * 0.45)) * high * fade; + dir = vec2(dir.x * 0.36 - dir.y * 0.93, dir.x * 0.93 + dir.y * 0.36); + long = long * 1.9; + high = high * 0.92; + } + let n = normalize(vec3(-slope, 1.0)); + let facing = clamp(dot(n, v), 0.0, 1.0); + let mirror = 0.03 + 0.97 * pow(1.0 - facing, 5.0); + var up = reflect(-v, n); + up.z = abs(up.z); + let day = globals.ambient.rgb + globals.sun_colour.rgb * 0.5; + let deep = vec3(0.02, 0.16, 0.20) * day + vec3(0.02, 0.10, 0.09) * max(slope.x + slope.y, 0.0) * day; + let spark = pow(max(dot(up, globals.sun.xyz), 0.0), 260.0); + return mix(deep, sky_colour(normalize(up)), mirror) + globals.sun_colour.rgb * spark * 1.5; +} + +struct SeaOut { + @builtin(position) clip: vec4, + @location(0) world: vec3, +}; + +// The sea: a square around the camera, up to the horizon. +@vertex +fn vs_sea(@builtin(vertex_index) i: u32) -> SeaOut { + var o: SeaOut; + let corner = vec2(f32(i & 1u), f32((i >> 1u) & 1u)) * 2.0 - 1.0; + o.world = vec3(globals.eye.xy + corner * 40000.0, 0.0); + o.clip = globals.view_proj * vec4(o.world, 1.0); + return o; +} + +@fragment +fn fs_sea(i: SeaOut) -> @location(0) vec4 { + let ray = i.world - globals.eye.xyz; + let far = length(ray); + let dir = ray / max(far, 0.001); + let haze = sky_colour(normalize(vec3(dir.xy, 0.0))); + let lit = mix(haze, water_colour(i.world), exp(-far * globals.eye.w)) * globals.ambient.w; + // Looking down, the ground shows through a little. + let alpha = mix(0.97, 0.82, clamp(-dir.z, 0.0, 1.0)); + return vec4(lit * alpha, alpha); +} + +struct SkyOut { + @builtin(position) clip: vec4, + @location(0) dir: vec3, +}; + +// A triangle over the whole picture, behind everything. +@vertex +fn vs_sky(@builtin(vertex_index) i: u32) -> SkyOut { + var o: SkyOut; + let x = f32(i32(i & 1u) * 4 - 1); + let y = f32(i32(i >> 1u) * 4 - 1); + o.clip = vec4(x, y, 0.0, 1.0); + o.dir = globals.forward.xyz + globals.right.xyz * x + globals.up.xyz * y; + return o; +} + +@fragment +fn fs_sky(i: SkyOut) -> @location(0) vec4 { + return vec4(sky_colour(normalize(i.dir)) * globals.ambient.w, 1.0); +} struct VsIn { @location(0) pos: vec3, - @location(1) normal: vec3, + @location(1) normal: vec4, @location(2) uv: vec2, @location(3) weights: vec4, @location(4) joints: vec4, @location(5) uv1: vec2, + @location(11) shading: vec4, + // Per placement: where it is, and the material's colour (multiplied with + // the texture). + @location(6) model_0: vec4, + @location(7) model_1: vec4, + @location(8) model_2: vec4, + @location(9) model_3: vec4, + @location(10) tint: vec4, }; struct VsOut { @builtin(position) clip: vec4, @@ -68,42 +176,76 @@ struct VsOut { @location(1) uv: vec2, @location(2) uv1: vec2, @location(3) world: vec3, + @location(4) tint: vec3, + @location(5) @interpolate(flat) kind: f32, + // How much sky it sees, and how much of what is put on the base shows. + @location(6) shading: vec2, }; @vertex fn vs_main(v: VsIn) -> VsOut { var o: VsOut; var pos = vec4(v.pos, 1.0); - var normal = v.normal; + var normal = v.normal.xyz; let total = v.weights.x + v.weights.y + v.weights.z + v.weights.w; if (total > 0.0) { - let m = (skin[min(v.joints.x, 255u)] * v.weights.x + skin[min(v.joints.y, 255u)] * v.weights.y - + skin[min(v.joints.z, 255u)] * v.weights.z + skin[min(v.joints.w, 255u)] * v.weights.w) * (1.0 / total); + let m = (skin[min(v.joints.x, {LAST_BONE})] * v.weights.x + skin[min(v.joints.y, {LAST_BONE})] * v.weights.y + + skin[min(v.joints.z, {LAST_BONE})] * v.weights.z + skin[min(v.joints.w, {LAST_BONE})] * v.weights.w) * (1.0 / total); pos = m * pos; normal = (m * vec4(normal, 0.0)).xyz; } - let world = draw.model * pos; + let model = mat4x4(v.model_0, v.model_1, v.model_2, v.model_3); + let world = model * pos; o.clip = globals.view_proj * world; o.world = world.xyz; - o.normal = (draw.model * vec4(normal, 0.0)).xyz; + o.normal = (model * vec4(normal, 0.0)).xyz; + o.tint = v.tint.rgb; + o.kind = v.tint.a; + o.shading = v.shading.ra; o.uv = v.uv; o.uv1 = v.uv1; return o; } -@fragment -fn fs_main(i: VsOut) -> @location(0) vec4 { - let base = textureSample(tex, samp, i.uv); - if (base.a < 0.3) { - discard; - } +// The colour, with the base texture's alpha. +fn shade(i: VsOut, base: vec4) -> vec4 { var n = i.normal; if (dot(n, n) < 1e-6) { n = vec3(0.0, 0.0, 1.0); } n = normalize(n); + // The normal map bends it, along the directions the texture runs in. + let bump = textureSample(normal_map, samp, i.uv).xy * 2.0 - vec2(1.0); + let px = dpdx(i.world); + let py = dpdy(i.world); + let ux = dpdx(i.uv); + let uy = dpdy(i.uv); + let shine = textureSample(specular_map, samp, i.uv); + let layer = textureSample(overlay, samp, i.uv1); + let det = ux.x * uy.y - uy.x * ux.y; + if (abs(det) > 1e-12 && dot(bump, bump) > 0.0004) { + let t = (px * uy.y - py * ux.y) / det; + let b = (py * ux.x - px * uy.x) / det; + let tangent = t - n * dot(n, t); + let bitangent = b - n * dot(n, b); + if (dot(tangent, tangent) > 1e-12 && dot(bitangent, bitangent) > 1e-12) { + let z = sqrt(max(1.0 - dot(bump, bump), 0.05)); + n = normalize(n * z + normalize(tangent) * bump.x + normalize(bitangent) * bump.y); + } + } // Headlight plus a little sky light; double-sided. var light = vec3(0.25 + 0.65 * abs(dot(n, globals.forward.xyz)) + 0.1 * max(n.z, 0.0)); + if (globals.right.w > 0.5) { + // Outdoors: the sun, and the sky from above. + let to_eye = globals.eye.xyz - i.world; + let m = select(-n, n, dot(n, to_eye) >= 0.0); + light = globals.sun_colour.rgb * max(dot(m, globals.sun.xyz), 0.0) + + globals.ambient.rgb * (0.85 + 0.35 * m.z); + light = light * mix(0.35, 1.0, i.shading.x); + if (abs(i.kind - LAMP) < 0.5) { + light = max(light, vec3(globals.sun_colour.w)); + } + } let count = u32(globals.forward.w); if (count > 0u) { // With scene lights the headlight is dimmer and the lights add up. @@ -125,9 +267,41 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { light = light + l.color.rgb * amount; } } - let layer = textureSample(overlay, samp, i.uv1); - let colour = mix(base.rgb * draw.tint.rgb, layer.rgb, layer.a); - return vec4(colour * light, 1.0); + let colour = mix(base.rgb * i.tint, layer.rgb, layer.a * i.shading.y); + // What shines towards the viewer. + let glint = pow(abs(dot(n, globals.forward.xyz)), 24.0) * max(max(shine.r, shine.g), shine.b) * 0.25; + var lit = colour * light + vec3(glint); + if (globals.right.w > 0.5) { + lit = colour * light; + if (abs(i.kind - WATER) < 0.5) { + lit = water_colour(i.world); + } + let ray = i.world - globals.eye.xyz; + let far = length(ray); + let dir = ray / max(far, 0.001); + let haze = sky_colour(normalize(vec3(dir.xy, max(dir.z, 0.0)))); + lit = mix(haze, lit, exp(-far * globals.eye.w)) * globals.ambient.w; + } + return vec4(lit, base.a); +} + +@fragment +fn fs_main(i: VsOut) -> @location(0) vec4 { + let base = textureSample(tex, samp, i.uv); + let c = shade(i, base); + if (base.a < 0.3) { + discard; + } + return vec4(c.rgb, 1.0); +} + +// What lies on other things (road markings, dirt): blended over them. +@fragment +fn fs_decal(i: VsOut) -> @location(0) vec4 { + let base = textureSample(tex, samp, i.uv); + let c = shade(i, base); + let alpha = base.a * i.shading.y; + return vec4(c.rgb * alpha, alpha); } // Particles: camera-facing squares, built on the CPU in world space. @@ -163,11 +337,25 @@ fn fs_sprite(i: SpriteOut) -> @location(0) vec4 { #[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)] struct Vertex { pos: [f32; 3], - normal: [f32; 3], + /// In 127ths. + normal: [i8; 4], uv: [f32; 2], - weights: [f32; 4], - joints: [u32; 4], + /// In 255ths. + weights: [u8; 4], + joints: [u16; 4], uv1: [f32; 2], + /// [`rage_formats::drawable::Mesh::shading`], in 255ths. + shading: [u8; 4], +} + +fn small_normal(n: [f32; 3]) -> [i8; 4] { + let len = n.iter().map(|v| v * v).sum::().sqrt().max(1e-12); + let [x, y, z] = n.map(|v| (v / len * 127.0).round() as i8); + [x, y, z, 0] +} + +fn small_weights(w: [f32; 4]) -> [u8; 4] { + w.map(|v| (v.clamp(0.0, 1.0) * 255.0).round() as u8) } #[repr(C)] @@ -195,6 +383,15 @@ struct Globals { view_proj: [f32; 16], forward: [f32; 4], lights: [GpuLight; MAX_LIGHTS], + eye: [f32; 4], + right: [f32; 4], + up: [f32; 4], + sun: [f32; 4], + sun_colour: [f32; 4], + ambient: [f32; 4], + zenith: [f32; 4], + horizon: [f32; 4], + below: [f32; 4], } /// A light of a scene: position, colour Γ— strength, reach, and for spot @@ -207,6 +404,82 @@ pub struct SceneLight { pub spot: Option<([f32; 3], f32)>, } +/// A placement of a draw. +#[repr(C)] +#[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)] +struct Instance { + model: math::Mat4, + tint: [f32; 4], +} + +/// How a scene outdoors looks. +#[derive(Debug, Clone, Copy)] +pub struct Outdoors { + /// How fast things fade into the distance, per metre. + pub haze: f32, + /// Hour of the day. + pub hour: f32, + pub brightness: f32, + /// For what moves. + pub seconds: f32, + /// There is a sea at height 0. + pub sea: bool, +} + +/// Marks a material's colour as water, or as a lamp that shines at night. +pub const WATER: f32 = 2.0; +pub const LAMP: f32 = 3.0; + +/// The light at an hour. +struct Daylight { + /// Towards the sun or the moon. + towards: [f32; 3], + colour: [f32; 3], + /// How much lamps shine. + lamps: f32, + /// From all sides. + ambient: [f32; 3], + zenith: [f32; 3], + horizon: [f32; 3], + /// Below the horizon. + below: [f32; 3], +} + +fn light_at(hour: f32) -> Daylight { + let mix = |a: [f32; 3], b: [f32; 3], t: f32| std::array::from_fn(|k| a[k] + (b[k] - a[k]) * t); + let step = |a: f32, b: f32, v: f32| { + let t = ((v - a) / (b - a)).clamp(0.0, 1.0); + t * t * (3.0 - 2.0 * t) + }; + let angle = (hour - 6.0) / 12.0 * std::f32::consts::PI; + // Up in the east, over the south, down in the west. + let sun = [angle.cos() * 0.92, -0.38, angle.sin()]; + let height = angle.sin(); + let day = step(-0.3, 0.25, height); + let dusk = (-(height / 0.2).powi(2)).exp(); + let colour: [f32; 3] = if height > -0.06 { + mix([0.75, 0.34, 0.13], [0.66, 0.62, 0.55], step(0.0, 0.4, height)).map(|c: f32| c * step(-0.06, 0.1, height)) + } else { + [0.16, 0.20, 0.30] + }; + let light = if height > -0.06 { sun } else { [-sun[0], sun[1], -sun[2]] }; + let len = light.iter().map(|v| v * v).sum::().sqrt(); + let horizon = mix([0.09, 0.11, 0.18], [0.74, 0.82, 0.89], day); + let lamps = 1.0 - step(-0.02, 0.25, height); + Daylight { + towards: light.map(|v| v / len), + colour, + lamps: lamps * 1.6, + ambient: mix([0.15, 0.18, 0.26], [0.36, 0.40, 0.46], day), + zenith: mix([0.02, 0.03, 0.08], [0.22, 0.45, 0.78], day), + horizon: mix(horizon, [0.95, 0.52, 0.28], dusk * 0.75), + below: mix([0.04, 0.05, 0.08], [0.40, 0.48, 0.55], day), + } +} + +/// Outdoors, models smaller than this in the picture are left out (pixels). +const SMALLEST: f32 = 1.6; + struct Gpu { device: wgpu::Device, queue: wgpu::Queue, @@ -214,27 +487,37 @@ struct Gpu { /// Particles blended over the scene, and particles that add light. sprite_blend: wgpu::RenderPipeline, sprite_add: wgpu::RenderPipeline, + sky: wgpu::RenderPipeline, + decal: wgpu::RenderPipeline, + sea: wgpu::RenderPipeline, + /// Block-compressed textures can be used as they are. + blocks: bool, globals_layout: wgpu::BindGroupLayout, texture_layout: wgpu::BindGroupLayout, - tint_layout: wgpu::BindGroupLayout, skin_layout: wgpu::BindGroupLayout, - /// Stride of the per-draw colours in the tint buffer. - tint_stride: u64, sampler: wgpu::Sampler, /// White 1Γ—1 texture for untextured meshes (their colour is the tint). white: wgpu::TextureView, + /// The same in grey. + grey: wgpu::TextureView, /// Transparent 1Γ—1 texture for meshes without an overlay. clear: wgpu::TextureView, + /// 1Γ—1 normal map for meshes without one. + flat: wgpu::TextureView, + /// Bones the skinning can use: devices differ. + bones: usize, } struct Draw { part: usize, drawable: usize, shader: u16, - vertices: wgpu::Buffer, - indices: wgpu::Buffer, - count: u32, + /// In the model's buffers. + base_vertex: i32, + indices: std::ops::Range, texture: usize, + /// Lies on other things. + decal: bool, /// Bounding sphere (centre, radius) in the model's space, for culling. sphere: ([f32; 3], f32), } @@ -243,8 +526,12 @@ struct Draw { struct GpuModel { owner: Weak, draws: Vec, - /// Bind groups: 0 is the plain texture, then one per pair of decoded - /// images (base colour, overlay). + /// Models with the same number are in the same buffers. + batch: u64, + vertices: wgpu::Buffer, + indices: wgpu::Buffer, + /// Bind groups: 0 is the plain texture, then one per combination of + /// decoded images. textures: Vec, } @@ -255,13 +542,14 @@ struct Targets { resolve: wgpu::Texture, resolve_view: wgpu::TextureView, depth: wgpu::TextureView, - readback: wgpu::Buffer, + readback: [wgpu::Buffer; 2], + /// A picture on its way back: for whom, its buffer and when it is done. + pending: Option<(u64, usize, wgpu::SubmissionIndex)>, padded_row: u32, } #[derive(Default)] struct State { - gpu: Option>, models: Vec, targets: Option, /// Bone palette of items without a skin (all identity), shared by them. @@ -270,6 +558,16 @@ struct State { sprite_textures: Vec<(Weak, wgpu::BindGroup)>, } +/// The graphics device; `None` if there is no usable one. +static GPU: LazyLock> = LazyLock::new(init); + +/// Models uploaded by other threads. +static READY: Mutex> = Mutex::new(Vec::new()); + +/// The textures of pictures that several models share. +type Views = HashMap, wgpu::TextureView)>; +static VIEWS: LazyLock> = LazyLock::new(Default::default); + thread_local! { static STATE: RefCell = RefCell::new(State::default()); } @@ -283,16 +581,24 @@ fn init() -> Option { ..Default::default() })) .ok()?; + let mut limits = wgpu::Limits::downlevel_defaults().using_resolution(adapter.limits()); + // People of GTA VI have about 600 bones. + let wanted = adapter.limits().max_uniform_buffer_binding_size.min((MAX_BONES as u32 * BONE).into()); + limits.max_uniform_buffer_binding_size = limits.max_uniform_buffer_binding_size.max(wanted); + let bones = (limits.max_uniform_buffer_binding_size / u64::from(BONE)) as usize; + let bones = bones.min(MAX_BONES); + let blocks = adapter.features().contains(wgpu::Features::TEXTURE_COMPRESSION_BC); let (device, queue) = pollster::block_on(adapter.request_device(&wgpu::DeviceDescriptor { label: Some("openrage"), - required_limits: wgpu::Limits::downlevel_defaults().using_resolution(adapter.limits()), + required_features: if blocks { wgpu::Features::TEXTURE_COMPRESSION_BC } else { wgpu::Features::empty() }, + required_limits: limits, ..Default::default() })) .ok()?; let module = device.create_shader_module(wgpu::ShaderModuleDescriptor { label: Some("model"), - source: wgpu::ShaderSource::Wgsl(SHADER.into()), + source: wgpu::ShaderSource::Wgsl(shader_source(bones).into()), }); let globals_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { label: Some("globals"), @@ -336,23 +642,28 @@ fn init() -> Option { }, count: None, }, - ], - }); - let tint_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { - label: Some("tint"), - entries: &[wgpu::BindGroupLayoutEntry { - binding: 0, - visibility: wgpu::ShaderStages::VERTEX_FRAGMENT, - ty: wgpu::BindingType::Buffer { - ty: wgpu::BufferBindingType::Uniform, - has_dynamic_offset: true, - min_binding_size: wgpu::BufferSize::new(DRAW_DATA as u64), + wgpu::BindGroupLayoutEntry { + binding: 3, + visibility: wgpu::ShaderStages::FRAGMENT, + ty: wgpu::BindingType::Texture { + sample_type: wgpu::TextureSampleType::Float { filterable: true }, + view_dimension: wgpu::TextureViewDimension::D2, + multisampled: false, + }, + count: None, }, - count: None, - }], + wgpu::BindGroupLayoutEntry { + binding: 4, + visibility: wgpu::ShaderStages::FRAGMENT, + ty: wgpu::BindingType::Texture { + sample_type: wgpu::TextureSampleType::Float { filterable: true }, + view_dimension: wgpu::TextureViewDimension::D2, + multisampled: false, + }, + count: None, + }, + ], }); - let align = (device.limits().min_uniform_buffer_offset_alignment as u64).max(16); - let tint_stride = (DRAW_DATA as u64).div_ceil(align) * align; let skin_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { label: Some("skin"), entries: &[wgpu::BindGroupLayoutEntry { @@ -368,44 +679,100 @@ fn init() -> Option { }); let layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("model"), - bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout), Some(&tint_layout), Some(&skin_layout)], + bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout), Some(&skin_layout)], immediate_size: 0, }); - let pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { + let model_pipeline = |decal: bool| { + device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { label: Some("model"), layout: Some(&layout), vertex: wgpu::VertexState { module: &module, entry_point: Some("vs_main"), compilation_options: Default::default(), - buffers: &[Some(wgpu::VertexBufferLayout { - array_stride: std::mem::size_of::() as u64, - step_mode: wgpu::VertexStepMode::Vertex, - attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Float32x3, 2 => Float32x2, 3 => Float32x4, 4 => Uint32x4, 5 => Float32x2], - })], + buffers: &[ + Some(wgpu::VertexBufferLayout { + array_stride: std::mem::size_of::() as u64, + step_mode: wgpu::VertexStepMode::Vertex, + attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Snorm8x4, 2 => Float32x2, 3 => Unorm8x4, 4 => Uint16x4, 5 => Float32x2, 11 => Unorm8x4], + }), + Some(wgpu::VertexBufferLayout { + array_stride: std::mem::size_of::() as u64, + step_mode: wgpu::VertexStepMode::Instance, + attributes: &wgpu::vertex_attr_array![6 => Float32x4, 7 => Float32x4, 8 => Float32x4, 9 => Float32x4, 10 => Float32x4], + }), + ], }, primitive: wgpu::PrimitiveState { cull_mode: None, ..Default::default() }, depth_stencil: Some(wgpu::DepthStencilState { format: DEPTH_FORMAT, - depth_write_enabled: Some(true), - depth_compare: Some(wgpu::CompareFunction::Less), + depth_write_enabled: Some(!decal), + depth_compare: Some(wgpu::CompareFunction::Greater), stencil: Default::default(), - bias: Default::default(), + // Depth is larger nearer to the camera. + bias: if decal { + wgpu::DepthBiasState { constant: 24, slope_scale: 1.5, clamp: 0.0 } + } else { + Default::default() + }, }), multisample: wgpu::MultisampleState { count: SAMPLES, ..Default::default() }, fragment: Some(wgpu::FragmentState { module: &module, - entry_point: Some("fs_main"), + entry_point: Some(if decal { "fs_decal" } else { "fs_main" }), compilation_options: Default::default(), targets: &[Some(wgpu::ColorTargetState { format: COLOR_FORMAT, - blend: None, + blend: decal.then_some(wgpu::BlendState::PREMULTIPLIED_ALPHA_BLENDING), write_mask: wgpu::ColorWrites::ALL, })], }), multiview_mask: None, cache: None, + }) + }; + let (pipeline, decal) = (model_pipeline(false), model_pipeline(true)); + let sky_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { + label: Some("sky"), + bind_group_layouts: &[Some(&globals_layout)], + immediate_size: 0, }); + let outdoor_pipeline = |vertex, fragment, topology, blend| { + device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { + label: Some(vertex), + layout: Some(&sky_layout), + vertex: wgpu::VertexState { + module: &module, + entry_point: Some(vertex), + compilation_options: Default::default(), + buffers: &[], + }, + primitive: wgpu::PrimitiveState { topology, ..Default::default() }, + depth_stencil: Some(wgpu::DepthStencilState { + format: DEPTH_FORMAT, + depth_write_enabled: Some(false), + depth_compare: Some(wgpu::CompareFunction::GreaterEqual), + stencil: Default::default(), + bias: Default::default(), + }), + multisample: wgpu::MultisampleState { count: SAMPLES, ..Default::default() }, + fragment: Some(wgpu::FragmentState { + module: &module, + entry_point: Some(fragment), + compilation_options: Default::default(), + targets: &[Some(wgpu::ColorTargetState { + format: COLOR_FORMAT, + blend, + write_mask: wgpu::ColorWrites::ALL, + })], + }), + multiview_mask: None, + cache: None, + }) + }; + let sky = outdoor_pipeline("vs_sky", "fs_sky", wgpu::PrimitiveTopology::TriangleList, None); + let over = wgpu::BlendState::PREMULTIPLIED_ALPHA_BLENDING; + let sea = outdoor_pipeline("vs_sea", "fs_sea", wgpu::PrimitiveTopology::TriangleStrip, Some(over)); let sprite_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("sprite"), bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout)], @@ -430,7 +797,7 @@ fn init() -> Option { depth_stencil: Some(wgpu::DepthStencilState { format: DEPTH_FORMAT, depth_write_enabled: Some(false), - depth_compare: Some(wgpu::CompareFunction::Less), + depth_compare: Some(wgpu::CompareFunction::Greater), stencil: Default::default(), bias: Default::default(), }), @@ -467,34 +834,63 @@ fn init() -> Option { address_mode_v: wgpu::AddressMode::Repeat, mag_filter: wgpu::FilterMode::Linear, min_filter: wgpu::FilterMode::Linear, + mipmap_filter: wgpu::MipmapFilterMode::Linear, + anisotropy_clamp: 8, ..Default::default() }); let white = upload_texture(&device, &queue, 1, 1, &[255, 255, 255, 255]); + let grey = upload_texture(&device, &queue, 1, 1, &[118, 118, 116, 255]); let clear = upload_texture(&device, &queue, 1, 1, &[0, 0, 0, 0]); + let flat = upload_texture(&device, &queue, 1, 1, &[128, 128, 255, 255]); Some(Gpu { sprite_blend, sprite_add, + sky, + decal, + sea, + blocks, device, queue, pipeline, globals_layout, texture_layout, - tint_layout, skin_layout, - tint_stride, sampler, white, + grey, clear, + flat, + bones, }) } -/// Uploads RGBA pixels as a texture. +/// Half of a picture in each direction. +fn halved(w: u32, h: u32, rgba: &[u8]) -> (u32, u32, Vec) { + let (hw, hh) = ((w / 2).max(1), (h / 2).max(1)); + let mut out = Vec::with_capacity((hw * hh * 4) as usize); + for y in 0..hh { + let rows = [(y * 2).min(h - 1), (y * 2 + 1).min(h - 1)]; + for x in 0..hw { + let columns = [(x * 2).min(w - 1), (x * 2 + 1).min(w - 1)]; + let at = |x: u32, y: u32| ((y * w + x) * 4) as usize; + let from = + [at(columns[0], rows[0]), at(columns[1], rows[0]), at(columns[0], rows[1]), at(columns[1], rows[1])]; + for c in 0..4 { + let sum: u32 = from.iter().map(|i| u32::from(rgba[i + c])).sum(); + out.push(((sum + 2) / 4) as u8); + } + } + } + (hw, hh, out) +} + +/// Uploads RGBA pixels as a texture, with smaller copies for the distance. fn upload_texture(device: &wgpu::Device, queue: &wgpu::Queue, w: u32, h: u32, rgba: &[u8]) -> wgpu::TextureView { - let size = wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }; + let levels = w.max(h).max(1).ilog2() + 1; let texture = device.create_texture(&wgpu::TextureDescriptor { label: None, - size, - mip_level_count: 1, + size: wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }, + mip_level_count: levels, sample_count: 1, dimension: wgpu::TextureDimension::D2, // Colors are passed through unchanged, like the software renderer. @@ -502,22 +898,119 @@ fn upload_texture(device: &wgpu::Device, queue: &wgpu::Queue, w: u32, h: u32, rg usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, view_formats: &[], }); - queue.write_texture( - wgpu::TexelCopyTextureInfo { - texture: &texture, - mip_level: 0, - origin: wgpu::Origin3d::ZERO, - aspect: wgpu::TextureAspect::All, - }, - rgba, - wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(4 * w), rows_per_image: Some(h) }, - size, - ); + let write = |level: u32, w: u32, h: u32, rgba: &[u8]| { + queue.write_texture( + wgpu::TexelCopyTextureInfo { + texture: &texture, + mip_level: level, + origin: wgpu::Origin3d::ZERO, + aspect: wgpu::TextureAspect::All, + }, + rgba, + wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(4 * w), rows_per_image: Some(h) }, + wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }, + ); + }; + write(0, w, h, rgba); + let mut smaller: Option<(u32, u32, Vec)> = None; + for level in 1..levels { + let next = match &smaller { + None => halved(w, h, rgba), + Some((w, h, rgba)) => halved(*w, *h, rgba), + }; + write(level, next.0, next.1, &next.2); + smaller = Some(next); + } texture.create_view(&Default::default()) } -/// A material's textures: base colour and overlay. -fn texture_bind_group(gpu: &Gpu, base: &wgpu::TextureView, overlay: &wgpu::TextureView) -> wgpu::BindGroup { +/// The texture of a picture on a model, made once for all that have it. +fn picture_view(gpu: &Gpu, picture: &Arc) -> Option { + let key = Arc::as_ptr(picture) as usize; + { + let views = VIEWS.lock().unwrap_or_else(|e| e.into_inner()); + if let Some((of, view)) = views.get(&key) + && of.upgrade().is_some_and(|of| Arc::ptr_eq(&of, picture)) + { + return Some(view.clone()); + } + } + let (w, h) = picture.size(); + let as_it_is = picture.source().filter(|_| gpu.blocks).and_then(|t| upload_blocks(gpu, &t)); + let view = match as_it_is { + Some(view) => view, + None => upload_texture(&gpu.device, &gpu.queue, w as u32, h as u32, picture.rgba()?), + }; + let mut views = VIEWS.lock().unwrap_or_else(|e| e.into_inner()); + if views.len().is_power_of_two() { + views.retain(|_, (of, _)| of.strong_count() > 0); + } + views.insert(key, (Arc::downgrade(picture), view.clone())); + Some(view) +} + +/// Uploads a block-compressed texture; `None` if it is of another kind. +fn upload_blocks(gpu: &Gpu, t: &rage_formats::texture::Texture) -> Option { + // Colours are passed through unchanged, so none is declared sRGB. + let format = match t.format.0 { + 70..=72 => wgpu::TextureFormat::Bc1RgbaUnorm, + 76..=78 => wgpu::TextureFormat::Bc3RgbaUnorm, + 82 | 83 => wgpu::TextureFormat::Bc5RgUnorm, + 97..=99 => wgpu::TextureFormat::Bc7RgbaUnorm, + _ => return None, + }; + if t.depth > 1 || !t.width.is_multiple_of(4) || !t.height.is_multiple_of(4) || t.levels == 0 { + return None; + } + let texture = gpu.device.create_texture(&wgpu::TextureDescriptor { + label: None, + size: wgpu::Extent3d { width: t.width, height: t.height, depth_or_array_layers: 1 }, + mip_level_count: t.levels, + sample_count: 1, + dimension: wgpu::TextureDimension::D2, + format, + usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, + view_formats: &[], + }); + let mut at = 0; + for level in 0..t.levels { + let (w, h) = ((t.width >> level).max(1), (t.height >> level).max(1)); + let (row, size) = t.format.pitch(w, h)?; + let data = t.data.get(at..at + size)?; + at += size; + gpu.queue.write_texture( + wgpu::TexelCopyTextureInfo { + texture: &texture, + mip_level: level, + origin: wgpu::Origin3d::ZERO, + aspect: wgpu::TextureAspect::All, + }, + data, + wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(row as u32), rows_per_image: None }, + wgpu::Extent3d { width: w.next_multiple_of(4), height: h.next_multiple_of(4), depth_or_array_layers: 1 }, + ); + } + Some(texture.create_view(&Default::default())) +} + +/// The shader, for devices that can skin with this many bones. +fn shader_source(bones: usize) -> String { + SHADER.replace("{BONES}", &bones.to_string()).replace("{LAST_BONE}", &format!("{}u", bones - 1)) +} + +/// A texture that is only a colour. +fn plain_bind_group(gpu: &Gpu, base: &wgpu::TextureView) -> wgpu::BindGroup { + texture_bind_group(gpu, base, &gpu.clear, &gpu.flat, &gpu.clear) +} + +/// A material's textures: base colour, overlay, normal and specular map. +fn texture_bind_group( + gpu: &Gpu, + base: &wgpu::TextureView, + overlay: &wgpu::TextureView, + normal: &wgpu::TextureView, + specular: &wgpu::TextureView, +) -> wgpu::BindGroup { gpu.device.create_bind_group(&wgpu::BindGroupDescriptor { label: None, layout: &gpu.texture_layout, @@ -525,17 +1018,29 @@ fn texture_bind_group(gpu: &Gpu, base: &wgpu::TextureView, overlay: &wgpu::Textu wgpu::BindGroupEntry { binding: 0, resource: wgpu::BindingResource::TextureView(base) }, wgpu::BindGroupEntry { binding: 1, resource: wgpu::BindingResource::Sampler(&gpu.sampler) }, wgpu::BindGroupEntry { binding: 2, resource: wgpu::BindingResource::TextureView(overlay) }, + wgpu::BindGroupEntry { binding: 3, resource: wgpu::BindingResource::TextureView(normal) }, + wgpu::BindGroupEntry { binding: 4, resource: wgpu::BindingResource::TextureView(specular) }, ], }) } -/// Uploads every part of the model (placements baked into the vertices). -fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, Vec) { - let mut textures = vec![texture_bind_group(gpu, &gpu.white, &gpu.clear)]; - // Material image index β†’ uploaded texture; (base, overlay) image indices β†’ bind group. - let mut views: HashMap = HashMap::new(); - let mut texture_of: HashMap<(Option, Option), usize> = HashMap::new(); - texture_of.insert((None, None), 0); +/// A model on its way to the graphics card. +struct Built { + owner: Weak, + draws: Vec, + vertices: Vec, + indices: Vec, + textures: Vec, +} + +/// Every part of the model (placements baked into the vertices), with its +/// textures uploaded. +fn build(gpu: &Gpu, preview: &Arc) -> Built { + let (model, materials) = (&preview.loaded, &preview.materials); + let (mut all_vertices, mut all_indices): (Vec, Vec) = (Vec::new(), Vec::new()); + let mut textures = vec![plain_bind_group(gpu, &gpu.white)]; + // Pictures β†’ bind group. + let mut texture_of: HashMap<[usize; 4], usize> = HashMap::new(); let mut draws = Vec::new(); for (part_index, part) in model.parts.iter().enumerate() { let Some((_, d)) = model.drawables.get(part.drawable) else { continue }; @@ -546,40 +1051,69 @@ fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, let has_n = mesh.normals.len() == mesh.positions.len(); let has_uv = mesh.uvs.len() == mesh.positions.len(); let has_uv1 = mesh.uvs1.len() == mesh.positions.len(); + // The second layer runs like the first. + let layered = d + .shaders + .get(usize::from(mesh.shader)) + .is_some_and(|s| s.sampler(param::LAYER_1_TEX).is_some() && s.sampler(param::DIFFUSE_TEX2).is_none()); let skinned = mesh.bone_weights.len() == mesh.positions.len(); - let bone = part.bone.map(|b| b as u32); + let bone = part.bone.map(|b| b as u16); let vertices: Vec = (0..mesh.positions.len()) .map(|i| Vertex { pos: math::transform_point(&part.transform, mesh.positions[i]), - normal: if has_n { math::transform_dir(&part.transform, mesh.normals[i]) } else { [0.0; 3] }, + normal: if has_n { + small_normal(math::transform_dir(&part.transform, mesh.normals[i])) + } else { + [0; 4] + }, uv: if has_uv { mesh.uvs[i] } else { [0.0; 2] }, // Parts attached to a bone follow it; others use the mesh's weights. weights: match bone { - Some(_) => [1.0, 0.0, 0.0, 0.0], - None if skinned => mesh.bone_weights[i], - None => [0.0; 4], + Some(_) => [255, 0, 0, 0], + None if skinned => small_weights(mesh.bone_weights[i]), + None => [0; 4], }, joints: match bone { Some(b) => [b, 0, 0, 0], - None if skinned => mesh.bone_indices[i].map(u32::from), + None if skinned => mesh.bone_indices[i], None => [0; 4], }, - uv1: if has_uv1 { mesh.uvs1[i] } else { [0.0; 2] }, + uv1: match (layered, has_uv1) { + (true, _) if has_uv => mesh.uvs[i], + (false, true) => mesh.uvs1[i], + _ => [0.0; 2], + }, + shading: mesh.shading.get(i).copied().unwrap_or([255; 4]), }) .collect(); - let base = materials.texture(part.drawable, mesh.shader).filter(|_| has_uv); - let overlay = materials.overlay(part.drawable, mesh.shader).filter(|_| has_uv1); - let mut view = |image: Option<(usize, usize, usize, &[u8])>| { - image.map(|(i, w, h, rgba)| { - views.entry(i).or_insert_with(|| upload_texture(&gpu.device, &gpu.queue, w as u32, h as u32, rgba)); - i - }) - }; - let key = (view(base), view(overlay)); + let usable = [has_uv, has_uv1 || (layered && has_uv), has_uv, has_uv]; + let mut pictures = materials.pictures(part.drawable, mesh.shader); + pictures.iter_mut().zip(usable).for_each(|(p, usable)| *p = p.filter(|_| usable)); + // A shader without a picture among others of its material that have + // one, whose colour says nothing about it. + let plain = pictures[0].is_none() + && model + .material_index(part.drawable, mesh.shader) + .and_then(|m| model.materials.get(m)) + .is_some_and(|m| m.textured); + let decal = d + .shaders + .get(usize::from(mesh.shader)) + .is_some_and(|s| rage_formats::names::value(s.name_hash).contains("decal")); + if plain && decal { + continue; + } + let mut key = pictures.map(|p| p.map_or(0, |p| Arc::as_ptr(p) as usize)); + key[0] = if plain { 1 } else { key[0] }; let texture = *texture_of.entry(key).or_insert_with(|| { - let base = key.0.map_or(&gpu.white, |i| &views[&i]); - let overlay = key.1.map_or(&gpu.clear, |i| &views[&i]); - textures.push(texture_bind_group(gpu, base, overlay)); + let [base, overlay, normal, specular] = pictures.map(|p| p.and_then(|p| picture_view(gpu, p))); + textures.push(texture_bind_group( + gpu, + base.as_ref().unwrap_or(if plain { &gpu.grey } else { &gpu.white }), + overlay.as_ref().unwrap_or(&gpu.clear), + normal.as_ref().unwrap_or(&gpu.flat), + specular.as_ref().unwrap_or(&gpu.clear), + )); textures.len() - 1 }); let (mut lo, mut hi) = ([f32::MAX; 3], [f32::MIN; 3]); @@ -596,22 +1130,74 @@ fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, part: part_index, drawable: part.drawable, shader: mesh.shader, - vertices: gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { - label: None, - contents: bytemuck::cast_slice(&vertices), - usage: wgpu::BufferUsages::VERTEX, - }), - indices: gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { - label: None, - contents: bytemuck::cast_slice(&mesh.indices), - usage: wgpu::BufferUsages::INDEX, - }), - count: mesh.indices.len() as u32, + base_vertex: all_vertices.len() as i32, + indices: all_indices.len() as u32..(all_indices.len() + mesh.indices.len()) as u32, texture, + decal, }); + all_vertices.extend_from_slice(&vertices); + all_indices.extend_from_slice(&mesh.indices); + } + } + Built { owner: Arc::downgrade(preview), draws, vertices: all_vertices, indices: all_indices, textures } +} + +/// Bytes of vertices or indices that share a buffer. +const BATCH: usize = 64 << 20; + +/// Puts models into buffers they share: changing buffers takes longer than +/// drawing a small model. +fn upload(gpu: &Gpu, built: Vec) -> Vec { + static NUMBER: AtomicU64 = AtomicU64::new(0); + let mut models = Vec::with_capacity(built.len()); + let mut rest = built.into_iter().peekable(); + while rest.peek().is_some() { + let (mut vertices, mut indices): (Vec, Vec) = (Vec::new(), Vec::new()); + let mut batch = Vec::new(); + while let Some(next) = rest.next_if(|b| { + let bytes = |v: usize, i: usize| (v * std::mem::size_of::()).max(i * 4); + batch.is_empty() || bytes(vertices.len() + b.vertices.len(), indices.len() + b.indices.len()) <= BATCH + }) { + let Built { owner, mut draws, vertices: v, indices: i, textures } = next; + for d in &mut draws { + d.base_vertex += vertices.len() as i32; + d.indices = d.indices.start + indices.len() as u32..d.indices.end + indices.len() as u32; + } + vertices.extend_from_slice(&v); + indices.extend_from_slice(&i); + batch.push((owner, draws, textures)); + } + // An empty buffer cannot be used. + if indices.is_empty() { + vertices.push(bytemuck::Zeroable::zeroed()); + indices.push(0); } + let buffer = |contents: &[u8], usage| { + gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: None, contents, usage }) + }; + let vertices = buffer(bytemuck::cast_slice(&vertices), wgpu::BufferUsages::VERTEX); + let indices = buffer(bytemuck::cast_slice(&indices), wgpu::BufferUsages::INDEX); + let number = NUMBER.fetch_add(1, Ordering::Relaxed); + models.extend(batch.into_iter().map(|(owner, draws, textures)| GpuModel { + owner, + draws, + batch: number, + vertices: vertices.clone(), + indices: indices.clone(), + textures, + })); + } + models +} + +/// Uploads models ahead of their first picture; from any thread. +pub fn prepare(previews: &[Arc]) { + if let Some(gpu) = &*GPU { + let built = previews.par_iter().map(|p| build(gpu, p)).collect(); + previews.iter().for_each(|p| p.materials.release()); + let models = upload(gpu, built); + READY.lock().unwrap_or_else(|e| e.into_inner()).extend(models); } - (draws, textures) } fn targets(gpu: &Gpu, w: u32, h: u32) -> Targets { @@ -632,19 +1218,22 @@ fn targets(gpu: &Gpu, w: u32, h: u32) -> Targets { let resolve = make(COLOR_FORMAT, 1, wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::COPY_SRC); let depth = make(DEPTH_FORMAT, SAMPLES, wgpu::TextureUsages::RENDER_ATTACHMENT); let padded_row = (4 * w).div_ceil(256) * 256; - let readback = gpu.device.create_buffer(&wgpu::BufferDescriptor { - label: Some("readback"), - size: (padded_row * h) as u64, - usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::MAP_READ, - mapped_at_creation: false, - }); + let readback = || { + gpu.device.create_buffer(&wgpu::BufferDescriptor { + label: Some("readback"), + size: (padded_row * h) as u64, + usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::MAP_READ, + mapped_at_creation: false, + }) + }; Targets { size: (w, h), msaa: msaa.create_view(&Default::default()), resolve_view: resolve.create_view(&Default::default()), resolve, depth: depth.create_view(&Default::default()), - readback, + readback: [readback(), readback()], + pending: None, padded_row, } } @@ -664,13 +1253,17 @@ fn frustum_planes(m: &[f32; 16]) -> [[f32; 4]; 6] { planes } +/// The largest factor a placement scales by. +fn scale_of(model: &math::Mat4) -> f32 { + (0..3) + .map(|k| (model[k * 4].powi(2) + model[k * 4 + 1].powi(2) + model[k * 4 + 2].powi(2)).sqrt()) + .fold(0.0f32, f32::max) +} + /// Whether a bounding sphere in model space, placed by `model`, touches the view. fn sphere_visible(planes: &[[f32; 4]; 6], model: &math::Mat4, (centre, radius): ([f32; 3], f32)) -> bool { let c = math::transform_point(model, centre); - let scale = (0..3) - .map(|k| (model[k * 4].powi(2) + model[k * 4 + 1].powi(2) + model[k * 4 + 2].powi(2)).sqrt()) - .fold(0.0f32, f32::max); - let r = radius * scale; + let r = radius * scale_of(model); planes.iter().all(|p| p[0] * c[0] + p[1] * c[1] + p[2] * c[2] + p[3] >= -r) } @@ -700,9 +1293,10 @@ fn view_projection(cam: &Camera, w: u32, h: u32, near: f32, far: f32) -> [f32; 1 let short = w.min(h) as f32; let t = (cam.fov / 2.0).tan(); let (sx, sy) = (short / w as f32 / t, short / h as f32 / t); - // Perspective with depth 0..1 (wgpu). - let a = far / (near - far); - let proj = [sx, 0.0, 0.0, 0.0, 0.0, sy, 0.0, 0.0, 0.0, 0.0, a, -1.0, 0.0, 0.0, a * near, 0.0]; + // Perspective with depth 1 (near) to 0: floats are finest at 0, which + // makes up for the far being so dense. Maps are kilometres wide. + let a = near / (far - near); + let proj = [sx, 0.0, 0.0, 0.0, 0.0, sy, 0.0, 0.0, 0.0, 0.0, a, -1.0, 0.0, 0.0, a * far, 0.0]; math::mul(&proj, &view) } @@ -716,7 +1310,7 @@ pub fn render( w: u32, h: u32, ) -> Option { - render_scene(&[SceneItem { preview, look, model: math::IDENTITY, skin }], &[], &[], camera, w, h) + render_scene(&[SceneItem { preview, look, model: math::IDENTITY, skin }], &Around::default(), camera, w, h) } /// One model of a scene: what is shown, where it stands and its pose. @@ -773,36 +1367,37 @@ fn sprite_vertices(sprites: &[Sprite], camera: &Camera) -> (Vec, V (vertices, runs) } +/// What there is in a scene besides models. +#[derive(Default)] +pub struct Around<'a> { + pub lights: &'a [SceneLight], + pub sprites: &'a [Sprite], + pub outdoors: Option, + /// The number of a view that is drawn again and again: it may get the + /// picture before, which is much quicker. + pub live: Option, +} + /// Renders several models (each with its own placement and pose) and /// particles from `camera`, e.g. all actors of a cutscene. -pub fn render_scene( - items: &[SceneItem], - lights: &[SceneLight], - sprites: &[Sprite], - camera: &Camera, - w: u32, - h: u32, -) -> Option { +pub fn render_scene(items: &[SceneItem], around: &Around, camera: &Camera, w: u32, h: u32) -> Option { + let &Around { lights, sprites, outdoors, live } = around; STATE.with(|state| { let mut st = state.borrow_mut(); let st = &mut *st; - if st.gpu.is_none() { - st.gpu = Some(init()); - } - let gpu = st.gpu.as_ref()?.as_ref()?; + let gpu = GPU.as_ref()?; let (w, h) = (w.clamp(1, 8192), h.clamp(1, 8192)); // Upload once per model; forget models that are gone. A scene places // the same model many times: look models up by pointer, not by a scan // of every uploaded model for every placement. + st.models.append(&mut READY.lock().unwrap_or_else(|e| e.into_inner())); st.models.retain(|m| m.owner.strong_count() > 0); - let mut uploaded: std::collections::HashSet<*const crate::ModelPreview> = - st.models.iter().map(|m| m.owner.as_ptr()).collect(); - for item in items { - if uploaded.insert(Arc::as_ptr(item.preview)) { - let (draws, textures) = upload(gpu, &item.preview.loaded, &item.preview.materials); - st.models.push(GpuModel { owner: Arc::downgrade(item.preview), draws, textures }); - } + let mut known: HashSet<*const crate::ModelPreview> = st.models.iter().map(|m| m.owner.as_ptr()).collect(); + let new: Vec<&Arc> = + items.iter().map(|item| item.preview).filter(|p| known.insert(Arc::as_ptr(p))).collect(); + if !new.is_empty() { + st.models.extend(upload(gpu, new.into_iter().map(|p| build(gpu, p)).collect())); } st.sprite_textures.retain(|(owner, _)| owner.strong_count() > 0); @@ -811,13 +1406,13 @@ pub fn render_scene( if !st.sprite_textures.iter().any(|(o, _)| o.as_ptr() == ptr) { let t = &sprite.texture; let view = upload_texture(&gpu.device, &gpu.queue, t.width, t.height, &t.rgba); - st.sprite_textures.push((Arc::downgrade(t), texture_bind_group(gpu, &view, &gpu.clear))); + st.sprite_textures.push((Arc::downgrade(t), plain_bind_group(gpu, &view))); } } if st.targets.as_ref().is_none_or(|t| t.size != (w, h)) { st.targets = Some(targets(gpu, w, h)); } - let t = st.targets.as_ref()?; + let t = st.targets.as_mut()?; let near = (camera.distance * 0.01).max(0.001); let far = camera.distance + camera.radius * 4.0 + 1.0; @@ -833,10 +1428,28 @@ pub fn render_scene( direction: [dir[0], dir[1], dir[2], cos], }; } + // How long the sides of the picture are, one away from the camera. + let tan = (camera.fov / 2.0).tan(); + let short = w.min(h) as f32; + let edge = |axis: [f32; 3], side: u32, last: f32| { + let reach = tan * side as f32 / short; + [axis[0] * reach, axis[1] * reach, axis[2] * reach, last] + }; + let light = light_at(outdoors.map_or(12.0, |o| o.hour)); + let wide = |v: [f32; 3], last: f32| [v[0], v[1], v[2], last]; let globals = Globals { view_proj: view_projection(camera, w, h, near, far), forward: [camera.forward[0], camera.forward[1], camera.forward[2], lights.len().min(MAX_LIGHTS) as f32], lights: gpu_lights, + eye: [camera.eye[0], camera.eye[1], camera.eye[2], outdoors.map_or(0.0, |o| o.haze)], + right: edge(camera.right, w, if outdoors.is_some() { 1.0 } else { 0.0 }), + up: edge(camera.up, h, 0.0), + sun: wide(light.towards, outdoors.map_or(0.0, |o| o.seconds)), + sun_colour: wide(light.colour, light.lamps), + ambient: wide(light.ambient, outdoors.map_or(1.0, |o| o.brightness)), + zenith: wide(light.zenith, 0.0), + horizon: wide(light.horizon, 0.0), + below: wide(light.below, 0.0), }; let globals_buffer = gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: Some("globals"), @@ -851,51 +1464,57 @@ pub fn render_scene( // Shown draws of every item with their colours (hidden parts and // materials left out, and unskinned ones outside the view). - let model_of: HashMap<*const crate::ModelPreview, usize> = - st.models.iter().enumerate().map(|(i, m)| (m.owner.as_ptr(), i)).collect(); + let model_of: HashMap = + st.models.iter().enumerate().map(|(i, m)| (m.owner.as_ptr() as usize, i)).collect(); let planes = frustum_planes(&globals.view_proj); - let mut shown: Vec<(usize, &GpuModel, &Draw, [f32; 4])> = Vec::new(); - for (index, item) in items.iter().enumerate() { - let model = &st.models[*model_of.get(&Arc::as_ptr(item.preview))?]; - for d in &model.draws { - if !item.look.parts.get(d.part).copied().unwrap_or(false) { - continue; - } - if item.skin.is_none() && !sphere_visible(&planes, &item.model, d.sphere) { - continue; - } - if let Some(tint) = item.preview.loaded.tint(item.look, d.drawable, d.shader) { - shown.push((index, model, d, tint)); - } - } - } - let stride = gpu.tint_stride as usize; - let mut tints = vec![0u8; stride * shown.len().max(1)]; - for (i, (index, _, _, tint)) in shown.iter().enumerate() { - tints[i * stride..i * stride + 16].copy_from_slice(bytemuck::cast_slice(tint)); - tints[i * stride + 16..i * stride + DRAW_DATA].copy_from_slice(bytemuck::cast_slice(&items[*index].model)); - } - let tint_buffer = gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { - label: Some("draws"), - contents: &tints, - usage: wgpu::BufferUsages::UNIFORM, - }); - let tint_group = gpu.device.create_bind_group(&wgpu::BindGroupDescriptor { - label: None, - layout: &gpu.tint_layout, - entries: &[wgpu::BindGroupEntry { - binding: 0, - resource: wgpu::BindingResource::Buffer(wgpu::BufferBinding { - buffer: &tint_buffer, - offset: 0, - size: wgpu::BufferSize::new(DRAW_DATA as u64), - }), - }], + // Pixels of something as large as it is far. + let pixels = short / 2.0 / tan; + let too_small = |model: &math::Mat4, (centre, radius): ([f32; 3], f32)| { + let c = math::transform_point(model, centre); + let far = (0..3).map(|k| (c[k] - camera.eye[k]).powi(2)).sum::().sqrt(); + radius * scale_of(model) * pixels < SMALLEST * (far - radius).max(0.0) + }; + // Whether it lies on others (those come last), the skinned item it is + // (or none), the model, the draw; the same ones are drawn together. + type Key = (bool, usize, usize, usize); + const NO_SKIN: usize = usize::MAX; + let models = &st.models; + let mut shown: Vec<(Key, Instance)> = items + .par_iter() + .enumerate() + .flat_map_iter(|(index, item)| { + let number = model_of.get(&(Arc::as_ptr(item.preview) as usize)).copied(); + let draws = number.map_or(&[][..], |n| &models[n].draws[..]); + let skin = if item.skin.is_some() { index } else { NO_SKIN }; + let (planes, too_small) = (&planes, &too_small); + draws.iter().enumerate().filter_map(move |(k, d)| { + if !item.look.parts.get(d.part).copied().unwrap_or(false) { + return None; + } + if item.skin.is_none() + && (!sphere_visible(planes, &item.model, d.sphere) + || (outdoors.is_some() && too_small(&item.model, d.sphere))) + { + return None; + } + let tint = item.preview.loaded.tint(item.look, d.drawable, d.shader)?; + Some(((d.decal, skin, number?, k), Instance { model: item.model, tint })) + }) + }) + .collect(); + shown.par_sort_unstable_by_key(|(key, _)| *key); + let instances: Vec = shown.iter().map(|(_, i)| *i).collect(); + let instance_buffer = (!instances.is_empty()).then(|| { + gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { + label: Some("instances"), + contents: bytemuck::cast_slice(&instances), + usage: wgpu::BufferUsages::VERTEX, + }) }); // A bone palette per skinned item; the others share the rest pose. let palette_group = |skin: Option<&[math::Mat4]>| { - let mut palette = vec![math::IDENTITY; MAX_BONES]; + let mut palette = vec![math::IDENTITY; gpu.bones]; for (slot, m) in palette.iter_mut().zip(skin.unwrap_or_default()) { *slot = *m; } @@ -937,22 +1556,53 @@ pub fn render_scene( })], depth_stencil_attachment: Some(wgpu::RenderPassDepthStencilAttachment { view: &t.depth, - depth_ops: Some(wgpu::Operations { load: wgpu::LoadOp::Clear(1.0), store: wgpu::StoreOp::Discard }), + depth_ops: Some(wgpu::Operations { load: wgpu::LoadOp::Clear(0.0), store: wgpu::StoreOp::Discard }), stencil_ops: None, }), timestamp_writes: None, occlusion_query_set: None, multiview_mask: None, }); - pass.set_pipeline(&gpu.pipeline); pass.set_bind_group(0, &globals_group, &[]); - for (i, (index, model, d, _)) in shown.iter().enumerate() { - pass.set_bind_group(3, skin_groups[*index].as_ref().unwrap_or(rest_pose), &[]); - pass.set_bind_group(1, &model.textures[d.texture], &[]); - pass.set_bind_group(2, &tint_group, &[(i * stride) as u32]); - pass.set_vertex_buffer(0, d.vertices.slice(..)); - pass.set_index_buffer(d.indices.slice(..), wgpu::IndexFormat::Uint32); - pass.draw_indexed(0..d.count, 0, 0..1); + if let Some(buffer) = &instance_buffer { + pass.set_pipeline(&gpu.pipeline); + pass.set_vertex_buffer(1, buffer.slice(..)); + let mut last = (None, None, None); + let mut first = 0; + let mut decals = false; + for run in shown.chunk_by(|a, b| a.0 == b.0) { + let (decal, skin, number, k) = run[0].0; + if decal && !decals { + pass.set_pipeline(&gpu.decal); + decals = true; + } + let model = &st.models[number]; + let d = &model.draws[k]; + // Only what changes is set. + if last.0 != Some(skin) { + let group = skin_groups.get(skin).and_then(Option::as_ref).unwrap_or(rest_pose); + pass.set_bind_group(2, group, &[]); + } + if last.1 != Some(model.batch) { + pass.set_vertex_buffer(0, model.vertices.slice(..)); + pass.set_index_buffer(model.indices.slice(..), wgpu::IndexFormat::Uint32); + } + if last.2 != Some((number, d.texture)) { + pass.set_bind_group(1, &model.textures[d.texture], &[]); + } + last = (Some(skin), Some(model.batch), Some((number, d.texture))); + let count = run.len() as u32; + pass.draw_indexed(d.indices.clone(), d.base_vertex, first..first + count); + first += count; + } + } + if outdoors.is_some() { + pass.set_pipeline(&gpu.sky); + pass.draw(0..3, 0..1); + if outdoors.is_some_and(|o| o.sea) { + pass.set_pipeline(&gpu.sea); + pass.draw(0..4, 0..1); + } } // Particles last, over what they are in front of. if let Some(buffer) = &sprite_buffer { @@ -962,13 +1612,13 @@ pub fn render_scene( continue; }; pass.set_pipeline(if additive { &gpu.sprite_add } else { &gpu.sprite_blend }); - pass.set_bind_group(0, &globals_group, &[]); pass.set_bind_group(1, group, &[]); let range = (first * 6) as u32..((first + count) * 6) as u32; pass.draw(range, 0..1); } } } + let here = t.pending.as_ref().map_or(0, |(_, other, _)| 1 - other); encoder.copy_texture_to_buffer( wgpu::TexelCopyTextureInfo { texture: &t.resolve, @@ -977,7 +1627,7 @@ pub fn render_scene( aspect: wgpu::TextureAspect::All, }, wgpu::TexelCopyBufferInfo { - buffer: &t.readback, + buffer: &t.readback[here], layout: wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(t.padded_row), @@ -986,13 +1636,35 @@ pub fn render_scene( }, wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }, ); - gpu.queue.submit([encoder.finish()]); + let submitted = gpu.queue.submit([encoder.finish()]); - t.readback.map_async(wgpu::MapMode::Read, .., |_| {}); - gpu.device.poll(wgpu::PollType::wait_indefinitely()).ok()?; + t.readback[here].map_async(wgpu::MapMode::Read, .., |_| {}); + let wait = |index: &wgpu::SubmissionIndex| { + let wait = wgpu::PollType::Wait { submission_index: Some(index.clone()), timeout: None }; + gpu.device.poll(wait).ok() + }; + // While things move, the picture before is taken: it is there by now, + // and the graphics card works while the next one is put together. + let before = t.pending.take(); + let taken = match (live, before) { + (Some(id), Some((of, other, index))) if of == id => { + wait(&index)?; + t.pending = Some((id, here, submitted)); + other + } + (_, before) => { + wait(&submitted)?; + if let Some((_, other, _)) = before { + t.readback[other].unmap(); + } + // The first of several is shown twice. + t.pending = live.map(|id| (id, here, submitted)); + here + } + }; let mut pixels = slint::SharedPixelBuffer::::new(w, h); { - let data = t.readback.get_mapped_range(..).ok()?; + let data = t.readback[taken].get_mapped_range(..).ok()?; let out = pixels.make_mut_bytes(); let row = (4 * w) as usize; for y in 0..h as usize { @@ -1000,7 +1672,9 @@ pub fn render_scene( out[y * row..(y + 1) * row].copy_from_slice(&data[src..src + row]); } } - t.readback.unmap(); + if t.pending.as_ref().is_none_or(|(_, kept, _)| *kept != taken) { + t.readback[taken].unmap(); + } Some(slint::Image::from_rgba8_premultiplied(pixels)) }) } @@ -1036,6 +1710,22 @@ mod tests { assert!(super::sphere_visible(&planes, &at([40.0, 10.0, 0.0]), ([0.0; 3], 40.0))); } + #[test] + fn the_sun_moves() { + let height = |hour| super::light_at(hour).towards[2]; + assert!(height(12.0) > 0.8 && height(8.0) > 0.2); + // At night there is a moon, and lamps. + assert!(height(0.0) > 0.5); + assert!(super::light_at(0.0).lamps > 1.0 && super::light_at(12.0).lamps == 0.0); + } + + #[test] + fn pictures_are_halved() { + let (w, h, half) = super::halved(2, 2, &[0, 0, 0, 0, 100, 0, 0, 0, 100, 0, 0, 0, 200, 0, 0, 0]); + assert_eq!((w, h, &half[..]), (1, 1, &[100, 0, 0, 0][..])); + assert_eq!(super::halved(4, 1, &[7; 16]).2, [7; 8]); + } + #[test] fn sprites_draw_far_first_in_runs() { use openrage_app::gta4_effects::{Image, Sprite}; @@ -1078,7 +1768,7 @@ mod tests { #[test] fn shader_is_valid_wgsl() { - let module = naga::front::wgsl::parse_str(super::SHADER).expect("WGSL parses"); + let module = naga::front::wgsl::parse_str(&super::shader_source(super::MAX_BONES)).expect("WGSL parses"); naga::valid::Validator::new(naga::valid::ValidationFlags::all(), naga::valid::Capabilities::empty()) .validate(&module) .expect("WGSL validates"); diff --git a/crates/openrage-gui/src/main.rs b/crates/openrage-gui/src/main.rs index de19007..387ac8e 100644 --- a/crates/openrage-gui/src/main.rs +++ b/crates/openrage-gui/src/main.rs @@ -16,12 +16,14 @@ mod debug; mod docs; mod editor; mod extract_ui; +mod fly; mod gpu; mod history; mod model_ui; mod mods_ui; mod navigate; mod openformats_ui; +mod player; mod plugins; mod plugins_ui; mod preview; @@ -29,12 +31,14 @@ mod scene; mod search; mod setup_ui; mod sound_ui; +mod stream; mod tools_ui; mod util; +mod video_ui; mod viewer; mod xmlview; -use std::cell::RefCell; +use std::cell::{Cell, RefCell}; use std::fs::File; use std::io::Read; use std::path::{Path, PathBuf}; @@ -62,6 +66,7 @@ use about::*; use archive_ops::*; use asi_ui::*; use callbacks::*; +#[cfg(debug_assertions)] use debug::*; use docs::*; use extract_ui::*; @@ -75,6 +80,7 @@ use setup_ui::*; use sound_ui::*; use tools_ui::*; use util::*; +use video_ui::start_video_preview; slint::include_modules!(); @@ -124,6 +130,8 @@ struct App { /// Play the selected sound as soon as it is decoded (double-click). play_when_ready: bool, audio_timer: slint::Timer, + /// The selected video; `sound` holds its sound. + video: Option, /// The list in the preview area: models suggested for a clip dictionary /// (`suggest_ycd` set), or the sounds of an audio container (`suggest_awc`). suggestions: Vec, @@ -131,7 +139,8 @@ struct App { suggest_awc: String, /// Models for `suggest_ycd` are still being looked for. suggest_pending: bool, - index_running: bool, + /// The game whose index is being updated, and how to stop that. + index_running: Option<(PathBuf, Arc)>, /// Plugin package shown in the install dialog. plugin_package: Option>, } @@ -156,6 +165,25 @@ fn main() -> anyhow::Result<()> { } let cfg = Config::load(); plugins::reload(&cfg); + // GTA VI archives are read through once to find their files: show how far that is. + let status = ui.as_weak(); + openrage_app::rpf9::register(std::sync::Arc::new(move |step| { + static SHOWN: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(u64::MAX); + let text = match step { + Some((name, done, total)) => { + let percent = done * 100 / total.max(1); + if SHOWN.swap(percent, Ordering::Relaxed) == percent { + return; + } + format!("Indexing {name} (read once, then remembered)… {percent} %") + } + None => { + SHOWN.store(u64::MAX, Ordering::Relaxed); + String::new() + } + }; + let _ = status.upgrade_in_event_loop(move |ui| ui.set_status(text.into())); + })); let keys = load_keys().unwrap_or(None); // Several games set up and none chosen as default: ask (after the window is up). let known = installed_games(&cfg); @@ -167,7 +195,9 @@ fn main() -> anyhow::Result<()> { default.or_else(|| cfg.game_dir.clone().filter(|d| known.contains(d))).or_else(|| known.first().cloned()) }; let rdr2_ready = game_dir.as_deref().is_some_and(|d| { - (is_rdr2_dir(d) && register_rdr2(d)) || (is_gta4_dir(d) && openrage_app::gta4::register(d).is_ok()) + (is_rdr2_dir(d) && register_rdr2(d)) + || (is_gta4_dir(d) && openrage_app::gta4::register(d).is_ok()) + || detect::is_gta6_dir(d) }); APP.with(|a| { @@ -202,11 +232,12 @@ fn main() -> anyhow::Result<()> { sound_start: 0.0, play_when_ready: false, audio_timer: slint::Timer::default(), + video: None, suggestions: Vec::new(), suggest_ycd: String::new(), suggest_awc: String::new(), suggest_pending: false, - index_running: false, + index_running: None, plugin_package: None, }) }); diff --git a/crates/openrage-gui/src/model_ui.rs b/crates/openrage-gui/src/model_ui.rs index ff73b76..ddd1a93 100644 --- a/crates/openrage-gui/src/model_ui.rs +++ b/crates/openrage-gui/src/model_ui.rs @@ -354,11 +354,17 @@ pub(crate) fn axis_view(axis: i32, current: openrage_app::render::View) -> openr v } +/// The size of pictures made for the preview area, in the screen's pixels. +pub(crate) fn preview_pixels(ui: &AppWindow) -> (usize, usize) { + let scale = ui.window().scale_factor().clamp(0.5, 4.0); + let pixels = |length: f32| ((length - 16.0).max(64.0) * scale).round() as usize; + (pixels(ui.get_preview_area_width()), pixels(ui.get_preview_area_height())) +} + /// Renders the current model at the size of the preview area. pub(crate) fn render_model(ui: &AppWindow) { let Some((model, view)) = with_app(|a| a.model.clone().map(|m| (m, a.model_view))) else { return }; - let w = (ui.get_preview_area_width() - 16.0).max(64.0) as usize; - let h = (ui.get_preview_area_height() - 16.0).max(64.0) as usize; + let (w, h) = preview_pixels(ui); if let Some((img, gizmo)) = render_image(&model, |lo, hi| openrage_app::render::orbit_camera(lo, hi, view), None, w, h) { @@ -474,15 +480,30 @@ pub(crate) fn save_png_image(img: &slint::Image, name: String, main: Weak bool { let n = item.name.to_ascii_lowercase(); - n.ends_with(".ycd") || (n.ends_with(".wad") && item.kind == ItemKind::Resource) + n.ends_with(".ycd") || n.ends_with(".#cd") || (n.ends_with(".wad") && item.kind == ItemKind::Resource) } /// Selecting a `.ycd` (or `.wad`): its clips and (found in the background) the models it fits. pub(crate) fn show_clip_dictionary(ui: &AppWindow, vpath: String, mut info: Meta) { match load_clip_dictionary(&vpath) { + Ok(dict) if vpath.to_ascii_lowercase().ends_with(".#cd") => { + // Bones are named by hash there, so no models are looked for. + info.push(kv("Clips", dict.clips.len())); + for c in dict.clips.iter().take(40) { + let animation = c.parts.first().and_then(|p| dict.animations.get(p.animation)); + let size = animation + .map_or_else(String::new, |a| format!(" Β· {} frames Β· {} tracks", a.frames, a.tracks.len())); + info.push(kv(&c.name, format!("{:.2} s{size}", c.duration()))); + } + if dict.clips.len() > 40 { + info.push(note(format!("… and {} more", dict.clips.len() - 40))); + } + info.push(note("To play it on a model with a skeleton, open the model and search for this file there.")); + set_meta(ui, &info); + } Ok(dict) => { let profile = suggest::Profile::new(&vpath, &dict); info.push(kv("Clips", dict.clips.len())); diff --git a/crates/openrage-gui/src/navigate.rs b/crates/openrage-gui/src/navigate.rs index b23c5d4..9df54e2 100644 --- a/crates/openrage-gui/src/navigate.rs +++ b/crates/openrage-gui/src/navigate.rs @@ -24,7 +24,14 @@ pub(crate) fn start_browsing(ui: &AppWindow) { format!("OpenRAGE β€” {name}") }); ui.set_window_title(title.into()); + ui.set_has_world_map(with_app(|a| a.game_dir.as_deref().is_some_and(detect::is_gta6_dir))); start_index_update(ui); + // GTA VI: its archives are read through once to find their files. That + // starts now, not when an archive is opened first. + match with_app(|a| a.game_dir.clone()).filter(|d| detect::is_gta6_dir(d)) { + Some(dir) => openrage_app::rpf9::index_in_background(&dir), + None => openrage_app::rpf9::stop_background(), + } refresh_asi(ui); refresh_tool_menu(ui); refresh_undo(ui); @@ -516,6 +523,18 @@ pub(crate) fn set_meta(ui: &AppWindow, meta: &Meta) { pub(crate) fn show_folder_info(ui: &AppWindow) { // Read before `with_app` below: it would borrow the app state twice. let overlay = overlay_name(); + // A video does not go on without its picture. + if ui.get_preview_loading() || with_app(|a| a.video.is_some()) { + with_app(|a| a.preview_generation.fetch_add(1, Ordering::SeqCst)); + ui.set_preview_loading(false); + stop_sound(ui); + ui.set_audio_mode(false); + ui.set_video_mode(false); + with_app(|a| { + a.sound = None; + a.video = None; + }); + } let info = with_app(|a| { let l = a.listing.as_ref()?; let name = location_title(l); @@ -614,6 +633,18 @@ pub(crate) fn show_folder_info(ui: &AppWindow) { ), ] } + Location::Rpf9(rpf, _) => { + let mut meta = vec![ + kv( + "Type", + if rpf.is_native() { "Inside a GTA VI archive" } else { "Recovered from a GTA VI archive" }, + ), + kv("Archive", rpf.display_name().rsplit('/').next().unwrap_or_default()), + ]; + meta.extend(crate::preview::rpf9_archive_info(rpf)); + meta.push(note("Read-only. Extract… saves the files unpacked.")); + meta + } Location::Gta4(a, _) => { let mut meta = vec![kv("Type", "Inside a GTA IV archive")]; meta.extend(gta4_archive_info(a)); diff --git a/crates/openrage-gui/src/player.rs b/crates/openrage-gui/src/player.rs new file mode 100644 index 0000000..489c397 --- /dev/null +++ b/crates/openrage-gui/src/player.rs @@ -0,0 +1,264 @@ +//! The video player: a window for each video, with its own sound. + +use std::cell::RefCell; +use std::rc::Rc; + +use crate::video_ui::{Event, Video, open_video}; +use crate::*; +use rage_formats::awc::Pcm; +use sound_ui::SOUND_END_MARGIN; + +type Shared = Rc>; + +thread_local! { + static OPEN: RefCell> = const { RefCell::new(Vec::new()) }; + static NEXT_ID: Cell = const { Cell::new(0) }; + /// As last set in a window. + static VOLUME: Cell = const { Cell::new(1.0) }; +} + +#[derive(Default)] +struct State { + video: Option-12 3d_prop 0x1F4 pack.name"; + assert_eq!(without_numbers(xml), "a x 3d_prop 0x1F4 pack name a "); + } + + #[test] + fn metadata_words_leave_out_unknown_hashes() { + let xml = "weapon_pistol".to_owned(); + let (text, words) = metadata_content(Some((xml.clone(), Vec::new())), b"data").unwrap(); + assert_eq!((text, words), (xml, vec!["weapon_pistol".to_owned()])); + } + + #[test] + fn strings_stand_in_for_metadata_that_cannot_be_converted() { + let data = b"\x01\x02body_shell\0ab\0\xff\xfebinary\0Geb\xc3\xa4ude\0"; + let (text, words) = metadata_content(None, data).unwrap(); + assert_eq!(text, "\nbody_shell\nGebΓ€ude"); + assert_eq!(words, ["Geb", "body_shell", "ude"]); + assert!(metadata_content(None, b"\0\x01").is_none()); + let (text, _) = metadata_content(Some(("".to_owned(), vec!["an error".to_owned()])), data).unwrap(); + assert!(text.starts_with("\nbody_shell")); + } + + #[test] + fn finds_hashed_names() { + let [exact, lower] = hashed_names("Adder").unwrap(); + assert_eq!(lower, "hash_b779a091"); + assert_ne!(exact, lower); + assert!(hashed_names("two words").is_none() && hashed_names("a.b").is_none()); + let text = "\n \n"; + for query in ["Adder", "0xB779A091"] { + assert_eq!(snippet(text, query).as_deref(), Some("")); + } + assert_eq!(snippet(text, "0x"), None); + } + #[test] fn finds_snippet() { + assert_eq!(snippet("a gun\nthe gun of A", "of gun").as_deref(), Some("the gun of A")); assert_eq!(snippet("a\n Pistol\nc", "pistol").as_deref(), Some("Pistol")); } } diff --git a/crates/rage-index/src/gta6.rs b/crates/rage-index/src/gta6.rs new file mode 100644 index 0000000..d7a987c --- /dev/null +++ b/crates/rage-index/src/gta6.rs @@ -0,0 +1,141 @@ +//! Names of GTA VI's files from those of others. +//! +//! The files of one thing lie in different archives: its model in one, what +//! rays hit of it in another. An archive only tells the hashes of its files' +//! names; with the names of all archives together, more of them are known. + +use std::collections::{HashMap, HashSet}; + +use rage_core::hash::joaat; +use rage_rpf::rpf9_names::hash64; +use rayon::prelude::*; +use rusqlite::params; + +use crate::{Index, IndexError, update::stem}; + +/// What files that belong to one called otherwise have at the end. +const ENDINGS: [&str; 14] = + ["", "_children", "_lod", "_slod", "_lod1", "_l1", "_l2", "_l3", "_m", "_a", "_b", "_d", "_int", "_ext"]; + +/// Where unnamed files are, and how their names start: `entries/000012_.`. +const UNNAMED: &str = "entries/"; + +/// The hash in the stand-in for an unknown name. +fn unnamed_hash(name: &str) -> Option { + let (slot, rest) = name.split_once('_')?; + let hash = rest.get(..16)?; + let is_stand_in = slot.len() >= 6 && slot.bytes().all(|b| b.is_ascii_digit()) && rest[16..].starts_with('.'); + is_stand_in.then(|| u64::from_str_radix(hash, 16).ok()).flatten() +} + +impl Index { + /// Looks for the names of files without one among those of the other + /// files and the words of the texts, names the files in the index, and + /// gives the names that were found. + pub fn learn_gta6_names(&mut self) -> Result, IndexError> { + struct Unnamed { + id: i64, + vpath: String, + name: String, + } + let mut unnamed: HashMap> = HashMap::new(); + let mut stems: HashSet = HashSet::new(); + { + // Archives keep theirs, as the files in them are found by it. + let mut stmt = self.conn.prepare("SELECT id, vpath, name FROM entries WHERE kind >= 2")?; + let mut rows = stmt.query([])?; + while let Some(r) = rows.next()? { + let name: String = r.get(2)?; + match unnamed_hash(&name) { + Some(hash) => { + unnamed.entry(hash).or_default().push(Unnamed { id: r.get(0)?, vpath: r.get(1)?, name }) + } + None => { + stems.insert(stem(&name).to_owned()); + } + } + } + if unnamed.is_empty() { + return Ok(Vec::new()); + } + let mut stmt = self.conn.prepare("SELECT string FROM hashes")?; + let words = stmt.query_map([], |r| r.get::<_, String>(0))?; + for word in words { + stems.insert(word?); + } + } + let found: HashMap = stems + .par_iter() + .flat_map_iter(|stem| { + let shorter = stem.rmatch_indices('_').take(2).map(|(at, _)| stem[..at].to_owned()); + let longer = ENDINGS.iter().map(move |end| format!("{stem}{end}")); + longer.chain(shorter).filter_map(|name| { + let hash = hash64(name.as_bytes()); + unnamed.contains_key(&hash).then_some((hash, name)) + }) + }) + .collect(); + let tx = self.conn.transaction()?; + { + let mut taken = tx.prepare("SELECT 1 FROM entries WHERE source = (SELECT source FROM entries WHERE id = ?1) AND name_hash = ?2 AND vpath = ?3")?; + let mut rename = + tx.prepare("UPDATE entries SET vpath = ?2, name = ?3, name_hash = ?4, stem_hash = ?5 WHERE id = ?1")?; + for (hash, name) in &found { + for file in unnamed.remove(hash).unwrap_or_default() { + let Some(folder) = file.vpath.strip_suffix(&file.name).and_then(|v| v.strip_suffix(UNNAMED)) else { + continue; + }; + let ending = file.name.split_once('.').map_or("", |(_, ending)| ending); + let name = format!("{name}.{ending}"); + let vpath = format!("{folder}{name}"); + let hash = i64::from(joaat(&name)); + if !taken.exists(params![file.id, hash, vpath])? { + rename.execute(params![file.id, vpath, name, hash, i64::from(joaat(stem(&name)))])?; + } + } + } + } + tx.commit()?; + Ok(found.into_values().collect()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn stand_ins_tell_the_hash() { + assert_eq!(unnamed_hash("000012_00ff00000000abcd.#bdr"), Some(0x00FF_0000_0000_ABCD)); + assert_eq!(unnamed_hash("prop_000012_00ff00000000abcd.#dr"), None); + assert_eq!(unnamed_hash("000012_00ff.#dr"), None); + } + + #[test] + fn files_are_named_after_those_of_other_archives() { + let dir = std::env::temp_dir().join(format!("openrage-gta6-names-{}", std::process::id())); + let mut index = Index::open(&dir.join("index.sqlite")).unwrap(); + let house = hash64(b"House_01"); + let add = |index: &Index, vpath: &str, source: i64| { + let name = vpath.rsplit('/').next().unwrap(); + index + .conn + .execute( + "INSERT INTO entries(source, vpath, name, kind, size, name_hash, stem_hash) VALUES(?1, ?2, ?3, 3, 9, ?4, 0)", + params![source, vpath, name, i64::from(joaat(name))], + ) + .unwrap(); + }; + add(&index, "levels.rpf/House_01.#dr", 1); + add(&index, &format!("bvh.rpf/entries/000003_{house:016x}.#bdr"), 2); + add(&index, "bvh.rpf/entries/000004_0000000000000001.#bdr", 2); + assert_eq!(index.learn_gta6_names().unwrap(), ["House_01"]); + let count = |vpath: &str| -> i64 { + index.conn.query_row("SELECT count(*) FROM entries WHERE vpath = ?1", [vpath], |r| r.get(0)).unwrap() + }; + assert_eq!(count("bvh.rpf/House_01.#bdr"), 1); + assert_eq!(count("bvh.rpf/entries/000004_0000000000000001.#bdr"), 1); + drop(index); + let _ = std::fs::remove_dir_all(dir); + } +} diff --git a/crates/rage-index/src/lib.rs b/crates/rage-index/src/lib.rs index 77cff2b..f7fb2f4 100644 --- a/crates/rage-index/src/lib.rs +++ b/crates/rage-index/src/lib.rs @@ -6,13 +6,14 @@ //! * a hash dictionary of identifiers found in the game's text data, so a bare //! hash like `0xB779A091` can be turned back into a name; //! * a full-text index (FTS5, contentless) over text files, audio name tables -//! and GXT2 string tables. +//! and GXT2 string tables, and over the metadata of GTA VI as XML. //! //! The index is updated incrementally: only top-level archives whose size or //! modification time changed are re-read. #![forbid(unsafe_code)] mod content; +mod gta6; mod schema; mod search; mod update; @@ -21,7 +22,7 @@ use std::path::{Path, PathBuf}; use rusqlite::Connection; -pub use content::{content_for, snippet}; +pub use content::{content_for, node_text, snippet}; pub use search::{Hit, HitReason, LANGUAGES, SearchResults, language_of, parse_hash}; pub use update::{Progress, UpdateStats}; @@ -137,6 +138,11 @@ impl Index { }) } + /// Whether an update has run to its end. + pub fn is_complete(&self) -> Result { + Ok(schema::get_meta(&self.conn, "updated_at")?.is_some()) + } + /// Unix time the indexed archives last changed (added, changed or /// removed), not merely when they were last checked. Caches built from the /// index compare against it. Indexes from before it was recorded give the diff --git a/crates/rage-index/src/schema.rs b/crates/rage-index/src/schema.rs index 2ccc64f..cae99e3 100644 --- a/crates/rage-index/src/schema.rs +++ b/crates/rage-index/src/schema.rs @@ -5,7 +5,8 @@ use rusqlite::{Connection, OptionalExtension, params}; /// Bump when the schema or the indexing rules change; older databases are rebuilt. /// 3: GTA IV audio entries are indexed by name (not only their hash). /// 4: RDR2 archives (RPF8) are indexed; indexes that skipped them are rebuilt. -const SCHEMA_VERSION: &str = "4"; +/// 5: GTA VI archives (RPF9) are indexed; indexes that failed on them are rebuilt. +const SCHEMA_VERSION: &str = "5"; pub fn prepare(conn: &Connection) -> rusqlite::Result<()> { conn.pragma_update(None, "journal_mode", "WAL")?; diff --git a/crates/rage-index/src/search.rs b/crates/rage-index/src/search.rs index 9644f27..acc3820 100644 --- a/crates/rage-index/src/search.rs +++ b/crates/rage-index/src/search.rs @@ -5,6 +5,7 @@ use std::collections::HashSet; use rage_core::hash::joaat; use rusqlite::params; +use crate::content::hashed_names; use crate::{EntryTag, Index, IndexError}; /// Why an entry matched. @@ -60,11 +61,14 @@ pub fn parse_hash(query: &str) -> Option { None } -/// Text languages of GTA V, as used in the names of its `*.rpf` language archives. -pub const LANGUAGES: [&str; 13] = [ +/// Text languages of the games, as used in the names of its `*.rpf` language archives. +/// `brazilian` and `chinesetrad` are GTA VI's. +pub const LANGUAGES: [&str; 15] = [ "american", + "brazilian", "chinese", "chinesesimp", + "chinesetrad", "french", "german", "italian", @@ -77,26 +81,33 @@ pub const LANGUAGES: [&str; 13] = [ "spanish", ]; -/// Language of a localized file, derived from its path (`…/germandlc.rpf/…`, `…/german_rel.rpf/…`, `…/lang/german/…`). +/// Language of a localized file, derived from its path (`…/germandlc.rpf/…`, `…/german_rel.rpf/…`, +/// `…/german_final.rpf/…`, `…/lang/german/…`). pub fn language_of(vpath: &str) -> Option<&'static str> { vpath.split('/').find_map(|seg| { let seg = seg.to_ascii_lowercase(); // GTA IV keeps its text tables loose: `common/text/german.gxt`. let base = seg.strip_suffix(".rpf").or_else(|| seg.strip_suffix(".gxt")).unwrap_or(&seg); - let base = base.strip_suffix("dlc").or_else(|| base.strip_suffix("_rel")).unwrap_or(base); + let base = ["dlc", "_rel", "_final"].iter().find_map(|end| base.strip_suffix(end)).unwrap_or(base); LANGUAGES.iter().find(|&&l| l == base).copied() }) } /// FTS5 query: every whitespace-separated term must appear (prefix match). +/// Other characters end a word in the text too, so `vehicles.meta` means its +/// words next to each other. A single name may also appear as its hash. fn fts_query(query: &str) -> Option { let terms: Vec = query .split_whitespace() - .map(|t| t.chars().filter(|c| c.is_alphanumeric() || *c == '_').collect::()) - .filter(|t| !t.is_empty()) - .map(|t| format!("\"{t}\"*")) + .map(|t| t.split(|c: char| !c.is_alphanumeric() && c != '_').filter(|w| !w.is_empty()).collect::>()) + .filter(|words| !words.is_empty()) + .map(|words| format!("\"{}\"*", words.join(" "))) .collect(); - (!terms.is_empty()).then(|| terms.join(" ")) + let terms = (!terms.is_empty()).then(|| terms.join(" "))?; + Some(match hashed_names(query.trim()) { + Some([exact, lower]) => format!("{terms} OR \"{exact}\" OR \"{lower}\""), + None => terms, + }) } fn like_pattern(query: &str) -> String { @@ -155,20 +166,26 @@ impl Index { .query_map(params![hash as i64, fetch], row_to_hit(HitReason::NameHash))? .collect::>()?; push(hits, &mut results); - // GXT2 labels are indexed as `0xHASH text` lines. + // GXT2 labels are indexed as `0xHASH text` lines, unknown names in + // metadata as `hash_HASH`. let mut stmt = self.conn.prepare_cached( "SELECT e.vpath, e.name, e.kind, e.size FROM content JOIN entries e ON e.id = content.rowid WHERE content MATCH ?1 ORDER BY rank LIMIT ?2", )?; let hits: Vec = stmt - .query_map(params![format!("\"0x{hash:08x}\""), fetch * 20], row_to_hit(HitReason::Content))? + .query_map( + params![format!("\"0x{hash:08x}\" OR \"hash_{hash:08x}\""), fetch * 20], + row_to_hit(HitReason::Content), + )? .collect::>()?; push(hits.into_iter().filter(|h| wanted_language(&h.vpath)).collect(), &mut results); return Ok(results); } let mut stmt = self.conn.prepare_cached( - "SELECT vpath, name, kind, size FROM entries WHERE name LIKE ?1 ESCAPE '\\' + "SELECT vpath, name, kind, size FROM entries + WHERE name LIKE ?1 ESCAPE '\\' OR ?5 AND vpath LIKE ?1 ESCAPE '\\' + OR name_hash = ?3 OR stem_hash = ?3 -- also where only the hash is known ORDER BY CASE WHEN name_hash = ?3 OR stem_hash = ?3 THEN 0 -- exact name or stem WHEN name LIKE ?4 ESCAPE '\\' THEN 1 -- prefix @@ -176,20 +193,31 @@ impl Index { length(name), vpath LIMIT ?2", )?; let prefix = format!("{}%", like_pattern(query).trim_start_matches('%')); - let hits = stmt - .query_map(params![like_pattern(query), fetch, joaat(query) as i64, prefix], row_to_hit(HitReason::Name))? + let path = query.contains(['/', '\\']); + let pattern = like_pattern(&query.replace('\\', "/")); + let mut names: Vec = stmt + .query_map(params![pattern, fetch, joaat(query) as i64, prefix, path], row_to_hit(HitReason::Name))? .collect::>()?; - push(hits, &mut results); - + let mut texts: Vec = Vec::new(); if let Some(fts) = fts_query(query) { let mut stmt = self.conn.prepare_cached( "SELECT e.vpath, e.name, e.kind, e.size FROM content JOIN entries e ON e.id = content.rowid WHERE content MATCH ?1 ORDER BY rank LIMIT ?2", )?; - let hits: Vec = + texts = stmt.query_map(params![fts, fetch * 20], row_to_hit(HitReason::Content))?.collect::>()?; - push(hits.into_iter().filter(|h| wanted_language(&h.vpath)).collect(), &mut results); + texts.retain(|h| wanted_language(&h.vpath)); + } + // Names come first, but leave room for some text hits: a common word + // is in more names than are shown. + let named: HashSet<&str> = names.iter().map(|h| h.vpath.as_str()).collect(); + let room = texts.iter().filter(|h| !named.contains(h.vpath.as_str())).take(limit / 4).count(); + if names.len() > limit - room { + names.truncate(limit - room); + results.limited = true; } + push(names, &mut results); + push(texts, &mut results); Ok(results) } } @@ -213,12 +241,63 @@ mod tests { fn detects_languages() { assert_eq!(language_of("x64b.rpf/data/lang/chinese_rel.rpf/global.gxt2"), Some("chinese")); assert_eq!(language_of("update/x/dlc.rpf/x64/data/lang/germandlc.rpf/a.gxt2"), Some("german")); + assert_eq!(language_of("data.rpf/data/lang/chinesetrad_final.rpf/a.#ldbmt"), Some("chinesetrad")); assert_eq!(language_of("x64e.rpf/levels/gta5/vehicles.rpf/adder.yft"), None); } + #[test] + fn finds_paths_and_unnamed_entries_by_the_hash_of_their_name() { + let dir = std::env::temp_dir().join(format!("openrage-index-search-{}", std::process::id())); + let index = Index::open(&dir.join("index.sqlite")).unwrap(); + for (vpath, hash) in [("a.rpf/cars/adder.#ft", None), ("a.rpf/entries/000001_00ff.#mt", Some(joaat("adder")))] { + let name = vpath.rsplit('/').next().unwrap(); + index + .conn + .execute( + "INSERT INTO entries(source, vpath, name, kind, size, name_hash, stem_hash) + VALUES(1, ?1, ?2, 2, 0, ?3, ?3)", + params![vpath, name, hash.unwrap_or_else(|| joaat(name)) as i64], + ) + .unwrap(); + } + let hits = + |q: &str| -> Vec { index.search(q, 20, None).unwrap().hits.into_iter().map(|h| h.vpath).collect() }; + assert_eq!(hits("Adder").len(), 2); + assert_eq!(hits("0xB779A091"), ["a.rpf/entries/000001_00ff.#mt"]); + assert_eq!(hits("cars/add"), ["a.rpf/cars/adder.#ft"]); + assert_eq!(hits("cars\\add"), ["a.rpf/cars/adder.#ft"]); + assert!(hits("cars").is_empty()); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn text_hits_have_room_beside_names() { + let dir = std::env::temp_dir().join(format!("openrage-index-room-{}", std::process::id())); + let index = Index::open(&dir.join("index.sqlite")).unwrap(); + for i in 0..30 { + let name = if i < 20 { format!("motel_{i}.#dr") } else { format!("{i}.xml") }; + let insert = "INSERT INTO entries(id, source, vpath, name, kind, size, name_hash, stem_hash) + VALUES(?1, 1, ?2, ?2, 2, 0, 0, 0)"; + index.conn.execute(insert, params![i, name]).unwrap(); + if i >= 20 { + index.conn.execute("INSERT INTO content(rowid, body) VALUES(?1, 'a motel')", [i]).unwrap(); + } + } + let results = index.search("motel", 12, None).unwrap(); + let texts = results.hits.iter().filter(|h| h.reason == HitReason::Content).count(); + assert_eq!((results.hits.len(), texts, results.limited), (12, 3, true)); + let results = index.search("motel", 30, None).unwrap(); + assert_eq!((results.hits.len(), results.limited), (30, false)); + let _ = std::fs::remove_dir_all(&dir); + } + #[test] fn builds_fts_queries() { - assert_eq!(fts_query("weapon_pistol").as_deref(), Some("\"weapon_pistol\"*")); + let hash = joaat("weapon_pistol"); + let expected = format!("\"weapon_pistol\"* OR \"hash_{hash:08x}\" OR \"hash_{hash:08x}\""); + assert_eq!(fts_query("weapon_pistol"), Some(expected)); + // The text is split at the dot, too. + assert_eq!(fts_query("vehicles.meta").as_deref(), Some("\"vehicles meta\"*")); assert_eq!(fts_query("a \"b\" -c").as_deref(), Some("\"a\"* \"b\"* \"c\"*")); assert_eq!(fts_query(" ").as_deref(), None); } diff --git a/crates/rage-index/src/update.rs b/crates/rage-index/src/update.rs index 68ef67f..96c42f6 100644 --- a/crates/rage-index/src/update.rs +++ b/crates/rage-index/src/update.rs @@ -5,23 +5,25 @@ //! including all archives nested inside it. Loose files are re-listed on //! every update (cheap). Archives are read in parallel; a single writer //! commits each archive in its own transaction, so a cancelled update keeps -//! everything finished so far. +//! everything finished so far. GTA VI archives hold up to thousands of others +//! and are written in parts; what a cancelled update wrote of one is replaced +//! by the next. use std::collections::{HashMap, HashSet}; use std::fs; use std::path::Path; use std::sync::Arc; -use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; use std::sync::mpsc; use std::time::{Instant, SystemTime, UNIX_EPOCH}; use rage_core::hash::joaat; use rage_crypto::GtaVKeys; -use rage_rpf::{EntryKind, Gta4Archive, Rpf7, vfs}; +use rage_rpf::{EntryKind, Gta4Archive, Rpf7, Rpf9, vfs}; use rayon::prelude::*; use rusqlite::params; -use crate::content::{content_for, is_indexable}; +use crate::content::{content_for, is_indexable, is_indexable_gta6, rpf9_content, without_numbers}; use crate::{EntryTag, Index, IndexError, schema}; #[derive(Debug, Clone, Default)] @@ -29,6 +31,9 @@ pub struct Progress { pub archives_done: usize, pub archives_total: usize, pub entries: u64, + /// How much of the archives that changed is read, in bytes of theirs. + pub bytes_done: u64, + pub bytes_total: u64, /// Archive that was just written. pub current: String, } @@ -53,6 +58,10 @@ struct DiskArchive { gta4: bool, /// A Red Dead Redemption 2 archive (RPF8) rather than RPF7. rdr2: bool, + /// A GTA VI archive (RPF9) rather than RPF7. + gta6: bool, + /// How much of it is read, for the progress. + read: AtomicU64, } /// Largest loose file whose text is indexed (GTA IV's text tables are ~6 MB). @@ -64,8 +73,11 @@ struct Record { kind: EntryTag, size: u64, body: Option, + /// The hash of a file whose name is not known, from the archive's table. + hash: Option, } +#[derive(Default)] struct Batch { rel: String, size: i64, @@ -73,9 +85,11 @@ struct Batch { records: Vec, dictionary: HashSet, errors: usize, + /// More of the same archive follows. + partial: bool, } -fn stem(name: &str) -> &str { +pub(crate) fn stem(name: &str) -> &str { name.split_once('.').map_or(name, |(s, _)| s) } @@ -122,7 +136,7 @@ fn scan_disk(game_dir: &Path) -> (Vec, Vec, HashSet body = Some(text); dictionary.extend(words); } - records.push(Record { vpath: rel.clone(), name, kind, size: meta.len(), body }); + records.push(Record { vpath: rel.clone(), name, kind, size: meta.len(), body, hash: None }); if meta.is_dir() { stack.push((entry.path(), rel)); } else if is_rpf { @@ -133,6 +147,8 @@ fn scan_disk(game_dir: &Path) -> (Vec, Vec, HashSet mtime: mtime_of(&meta), gta4, rdr2: !gta4 && rage_rpf::Rpf8::file_is_rpf8(&entry.path()), + gta6: !gta4 && Rpf9::file_is_rpf9(&entry.path()), + read: AtomicU64::new(0), }); } } @@ -171,7 +187,14 @@ fn read_gta4_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { Err(_) => batch.errors += 1, } } - batch.records.push(Record { vpath: path.to_owned(), name: e.name.clone(), kind, size: e.size(), body }); + batch.records.push(Record { + vpath: path.to_owned(), + name: e.name.clone(), + kind, + size: e.size(), + body, + hash: None, + }); }); batch } @@ -203,6 +226,7 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { kind: EntryTag::Dir, size: 0, body: None, + hash: None, }); } } @@ -213,6 +237,7 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { kind: EntryTag::Archive, size: e.size(), body: None, + hash: None, }); match rpf.open_child(e) { Ok(child) if depth < rage_rpf::MAX_NESTING => walk(&child, &vpath, depth + 1, batch), @@ -233,7 +258,7 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { Err(_) => batch.errors += 1, } } - batch.records.push(Record { vpath, name: base, kind, size: e.size(), body }); + batch.records.push(Record { vpath, name: base, kind, size: e.size(), body, hash: None }); } } match Rpf8::open_default(&archive.path) { @@ -243,16 +268,180 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { batch } -/// Reads one top-level archive (and everything nested in it) into a batch. -fn read_archive(archive: &DiskArchive, keys: Option>) -> Batch { - let mut batch = Batch { - rel: archive.rel.clone(), - size: archive.size, - mtime: archive.mtime, - records: Vec::new(), - dictionary: HashSet::new(), - errors: 0, +/// Larger members of GTA VI archives are not read for their text. +const MAX_GTA6_TEXT: u64 = 64 << 20; +/// Archives with gigabytes of metadata that is all numbers. +const GTA6_NUMBERS: &str = "/audio/exterior_occlusion/"; +/// As many are read and converted at a time, and written in one transaction. +const TEXTS_AT_ONCE: usize = 64; + +/// Reads a GTA VI archive (RPF9) and the archives nested in it. Only archives +/// with a readable table are indexed: the recovery view of others takes a scan +/// of the whole file, and has no names. Every nested archive is a part of its +/// own, sent when it is read: opening one takes a while, as it learns names +/// from its members. Returns the last part, or `None` if cancelled. +fn read_gta6_archive( + archive: &DiskArchive, + mut batch: Batch, + cancel: &AtomicBool, + part: &(dyn Fn(Batch) + Sync), +) -> Option { + match Rpf9::open(&archive.path) { + Ok(rpf) if rpf.is_native() => { + walk_gta6(&rpf, &archive.rel, 0, cancel, part, &|| archive.part(), &|bytes| archive.add_read(bytes)); + } + // Not readable with this executable: tried again by the next update. + _ => { + batch.errors += 1; + batch.partial = true; + } + } + (!cancel.load(Ordering::Relaxed)).then_some(batch) +} + +fn walk_gta6( + rpf: &Rpf9, + prefix: &str, + depth: u8, + cancel: &AtomicBool, + part: &(dyn Fn(Batch) + Sync), + new_part: &(dyn Fn() -> Batch + Sync), + read: &(dyn Fn(u64) + Sync), +) { + let mut batch = new_part(); + let Ok(entries) = rpf.entries() else { + batch.errors += 1; + return part(batch); }; + // Folders come from the entries' paths. + let mut dirs: HashSet = HashSet::new(); + let mut children = Vec::new(); + let mut texts = Vec::new(); + for e in entries.iter() { + let name = rpf.entry_name(e); + let vpath = format!("{prefix}/{name}"); + let mut parts: Vec<&str> = name.split('/').collect(); + let base = parts.pop().unwrap_or_default().to_owned(); + let mut dir = prefix.to_owned(); + for folder in parts { + dir = format!("{dir}/{folder}"); + if dirs.insert(dir.to_ascii_lowercase()) { + batch.records.push(Record { + vpath: dir.clone(), + name: folder.to_owned(), + kind: EntryTag::Dir, + size: 0, + body: None, + hash: None, + }); + } + } + let kind = if rpf.is_archive(e) { + children.push((e, vpath.clone())); + EntryTag::Archive + } else if rpf.resource_parts(e).is_some() { + EntryTag::Resource + } else { + EntryTag::File + }; + if kind != EntryTag::Archive + && is_indexable_gta6(&base) + && e.size <= MAX_GTA6_TEXT + && !vpath.contains(GTA6_NUMBERS) + { + texts.push((e, vpath, base, kind)); + continue; + } + let hash = rpf.unnamed_hash(e); + batch.records.push(Record { vpath, name: base, kind, size: e.size, body: None, hash }); + } + if cancel.load(Ordering::Relaxed) { + return; + } + part(batch); + // A few at a time: converted metadata is several times its size. + for chunk in texts.chunks(TEXTS_AT_ONCE) { + let found: Vec<_> = chunk + .par_iter() + .filter(|_| !cancel.load(Ordering::Relaxed)) + .map(|(e, vpath, base, kind)| { + let content = rpf9_content(rpf, e, base).map(|found| { + let is_text = is_indexable(base) || base.to_ascii_lowercase().ends_with(".#ldbmt"); + found.map(|(text, words)| (if is_text { text } else { without_numbers(&text) }, words)) + }); + let hash = rpf.unnamed_hash(e); + let record = + Record { vpath: vpath.clone(), name: base.clone(), kind: *kind, size: e.size, body: None, hash }; + (record, content) + }) + .collect(); + let mut batch = new_part(); + for (mut record, content) in found { + match content { + Ok(Some((text, words))) => { + record.body = Some(text); + batch.dictionary.extend(words); + } + Ok(None) => {} + Err(_) => batch.errors += 1, + } + batch.records.push(record); + } + if cancel.load(Ordering::Relaxed) { + return; + } + part(batch); + } + children.par_iter().for_each(|(e, vpath)| { + if cancel.load(Ordering::Relaxed) { + return; + } + match rpf.open_child(e) { + Ok(child) if depth < rage_rpf::MAX_NESTING => { + walk_gta6(&child, vpath, depth + 1, cancel, part, new_part, &|_| {}); + } + _ => part(Batch { errors: 1, ..new_part() }), + } + read(e.size); + }); +} + +impl DiskArchive { + fn batch(&self) -> Batch { + Batch { rel: self.rel.clone(), size: self.size, mtime: self.mtime, ..Default::default() } + } + + fn add_read(&self, bytes: u64) { + self.read.fetch_add(bytes, Ordering::Relaxed); + } + + fn bytes_read(&self) -> u64 { + self.read.load(Ordering::Relaxed).min(self.size as u64) + } + + /// For some of its entries. + fn part(&self) -> Batch { + Batch { partial: true, ..self.batch() } + } +} + +/// Reads one top-level archive (and everything nested in it) into a batch; +/// a GTA VI archive into several, of which all but the last go to `part`. +/// `None` if cancelled. +fn read_archive( + archive: &DiskArchive, + keys: Option>, + cancel: &AtomicBool, + part: &(dyn Fn(Batch) + Sync), +) -> Option { + if archive.gta6 { + return read_gta6_archive(archive, archive.batch(), cancel, part); + } + Some(read_other_archive(archive, keys)) +} + +fn read_other_archive(archive: &DiskArchive, keys: Option>) -> Batch { + let mut batch = archive.batch(); if archive.gta4 { return read_gta4_archive(archive, batch); } @@ -292,7 +481,14 @@ fn read_archive(archive: &DiskArchive, keys: Option>) -> Batch { Err(_) => errors.set(errors.get() + 1), } } - batch.records.push(Record { vpath: path.to_owned(), name: e.name.clone(), kind, size: e.size(), body }); + batch.records.push(Record { + vpath: path.to_owned(), + name: e.name.clone(), + kind, + size: e.size(), + body, + hash: None, + }); }, &mut |_| errors.set(errors.get() + 1), ); @@ -341,6 +537,12 @@ impl Index { .filter(|a| stored.get(&a.rel).is_none_or(|&(_, size, mtime)| size != a.size || mtime != a.mtime)) .collect(); todo.sort_by_key(|a| std::cmp::Reverse(a.size)); // big ones first for better parallelism + // GTA VI archives are only indexed if the game's executable gives the + // keys. Asking one here also loads those before the threads that read + // archives wait for each other to do it. + if !todo.iter().rev().filter(|a| a.gta6).any(|a| Rpf9::open(&a.path).is_ok_and(|rpf| rpf.is_native())) { + todo.retain(|a| !a.gta6); + } { let tx = self.conn.transaction()?; @@ -349,36 +551,58 @@ impl Index { tx.execute("DELETE FROM entries WHERE source = ?1", [id])?; tx.execute("DELETE FROM sources WHERE id = ?1", [id])?; } - let loose_batch = - Batch { rel: String::new(), size: 0, mtime: 0, records: loose, dictionary: loose_words, errors: 0 }; + let loose_batch = Batch { records: loose, dictionary: loose_words, ..Default::default() }; write_batch(&tx, &loose_batch)?; tx.commit()?; } let total = todo.len(); + let bytes_total = todo.iter().map(|a| a.size as u64).sum(); + let counted = todo.clone(); let mut done = 0usize; let (sender, receiver) = mpsc::sync_channel::(4); let conn = &mut self.conn; let result: Result<(), IndexError> = std::thread::scope(|scope| { scope.spawn(move || { - todo.par_iter().for_each_with(sender, |s, archive| { - if !cancel.load(Ordering::Relaxed) { - let _ = s.send(read_archive(archive, keys.clone())); - } - }); + let read = move || { + todo.par_iter().for_each_with(sender, |s, archive| { + if cancel.load(Ordering::Relaxed) { + return; + } + let s = &*s; + let part = |batch| { + let _ = s.send(batch); + }; + if let Some(batch) = read_archive(archive, keys.clone(), cancel, &part) { + archive.add_read(archive.size as u64); + part(batch); + } + }); + }; + // Threads of its own: what is opened meanwhile does not wait + // behind the archives, and keeps some processors. + let threads = std::thread::available_parallelism().map_or(4, |n| (n.get() * 3 / 4).max(1)); + match rayon::ThreadPoolBuilder::new().num_threads(threads).build() { + Ok(pool) => pool.install(read), + Err(_) => read(), + } }); for batch in receiver { let tx = conn.transaction()?; let added = write_batch(&tx, &batch)?; tx.commit()?; - done += 1; - stats.archives_indexed += 1; + if !batch.partial { + done += 1; + stats.archives_indexed += 1; + } stats.entries_added += added; stats.read_errors += batch.errors; progress(&Progress { archives_done: done, archives_total: total, entries: stats.entries_added, + bytes_done: counted.iter().map(|a| a.bytes_read()).sum(), + bytes_total, current: batch.rel, }); } @@ -407,11 +631,14 @@ impl Index { } fn write_batch(tx: &rusqlite::Transaction<'_>, batch: &Batch) -> Result { - tx.execute( - "INSERT INTO sources(path, size, mtime) VALUES(?1, ?2, ?3)", - params![batch.rel, batch.size, batch.mtime], + // An archive that is not complete matches no size on disk. + let (size, mtime) = if batch.partial { (-1, -1) } else { (batch.size, batch.mtime) }; + let source: i64 = tx.query_row( + "INSERT INTO sources(path, size, mtime) VALUES(?1, ?2, ?3) + ON CONFLICT(path) DO UPDATE SET size = excluded.size, mtime = excluded.mtime RETURNING id", + params![batch.rel, size, mtime], + |r| r.get(0), )?; - let source = tx.last_insert_rowid(); let mut entry = tx.prepare_cached( "INSERT INTO entries(source, vpath, name, kind, size, name_hash, stem_hash, has_text) VALUES(?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)", @@ -424,8 +651,8 @@ fn write_batch(tx: &rusqlite::Transaction<'_>, batch: &Batch) -> Result(work: impl FnOnce() -> R + Send) -> R { + std::thread::scope(|scope| { + let thread = scope.spawn(|| match rayon::ThreadPoolBuilder::new().build() { + Ok(pool) => pool.install(work), + Err(_) => work(), + }); + match thread.join() { + Ok(result) => result, + Err(panic) => std::panic::resume_unwind(panic), + } + }) +} diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs new file mode 100644 index 0000000..d63651f --- /dev/null +++ b/crates/rage-rpf/src/rpf9.rs @@ -0,0 +1,1294 @@ +//! RPF9 archives (GTA VI). +//! +//! With the game's executable (`game_scarlett_master.exe`, the supported +//! build) in the archive's folder or one above, the archive's own table of +//! contents is read: all its files, their folders and β€” as far as they can be +//! matched to the hashes in the table β€” names, and the archives inside it +//! ([`Rpf9::open_child`]). Nothing from the executable is stored. +//! +//! Without it, an archive is read without its table of contents, as below. +//! +//! Layout (little-endian): +//! - 64-byte header: magic `RPF9`, then the offset where the file data +//! starts, a declared entry count at `0x24` and transform tag at `0x2e`. +//! - The table of contents (names, sizes, offsets) up to the data offset. It +//! is encrypted with keys that only the game's executable has. +//! - The file data. Most of it is not encrypted: zlib streams laid end to +//! end, each starting on a 16-byte boundary, Bink 2 videos and audio +//! containers (`ADAT`). +//! +//! So the archive is read as a *recovery view*: [`Rpf9::scan`] walks the data +//! area and lists every zlib stream, Bink 2 video and audio container it finds. Files have no +//! names, only their offset (`xml/00000000b000.xml`), and are sorted into +//! folders by what their first bytes look like. A file stored in several +//! 64 KiB chunks is put together again; a resource whose pages are separate +//! streams shows up as several entries. Other data (encrypted files) is not +//! listed. +//! +//! Scanning reads the whole archive, so the result is worth keeping: +//! [`encode_index`] and [`decode_index`] store it, and a program can +//! register a loader with [`set_indexer`] that [`Rpf9::entries`] then uses. + +use std::collections::{BTreeSet, HashMap}; +use std::fs::File; +use std::io::{BufReader, Read, Seek, SeekFrom, Write}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; +use std::sync::{Arc, Mutex, OnceLock, RwLock}; + +use rayon::prelude::*; + +use crate::RpfError; +use crate::rpf9_index::{NativeEntry, Storage}; +use crate::rpf9_native::NativeArchive; +pub use crate::rpf9_native::add_names; + +const MAGIC: u32 = 0x5250_4639; +/// Length of the header in front of the table of contents. +pub const HEADER_LEN: usize = 64; +/// Files larger than this are stored as several zlib streams of this many +/// unpacked bytes, the last one shorter. +const CHUNK: u64 = 0x10000; +/// Streams start on a multiple of this. +const ALIGN: u64 = 16; +/// The data area is scanned in pieces of this size, in parallel. +const SEGMENT: u64 = 256 << 20; +/// How much of the file a scanner keeps in memory. +const WINDOW: usize = 4 << 20; +/// A window with less than this left is read anew, so most streams fit. +const WINDOW_MIN: usize = 64 << 10; +/// Archives of at least this size get a folder per GiB of offset. +const BUCKETED_FROM: u64 = 1 << 30; + +/// Four-byte magics that tagged formats of the game start with. Only these +/// become an extension: among a million files, some start with four letters +/// by chance. +const MAGICS: [&[u8; 4]; 7] = [b"PSIN", b"PAMH", b"MHIU", b"RBF0", b"SPS1", b"RSC8", b"0DRP"]; + +/// The readable part of the header. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct Header { + /// Where the file data starts; the table of contents ends here. + pub data_offset: u32, + /// Native index slots declared by the clear header. Recovery streams do + /// not correspond one-to-one to these slots. + pub entry_count: u32, + /// Native header transform selector; this is not an archive key ID. + pub toc_transform: u8, +} + +impl Header { + pub fn parse(b: &[u8]) -> Option
{ + if b.len() < HEADER_LEN || crate::word(b, 0) != MAGIC { + return None; + } + Some(Header { data_offset: crate::word(b, 4), entry_count: crate::word(b, 0x24), toc_transform: b[0x2e] }) + } +} + +/// How an entry is stored. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Kind { + /// One or more zlib streams. + Zlib, + /// A Bink 2 video, stored as is. + Bink2, + /// An audio container (`ADAT`), stored as is. + Awc, + /// A file of the archive's own table, at this slot. + Native { slot: u32 }, +} + +/// One recovered file. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Entry { + /// Where it starts in the archive file. + pub offset: u64, + /// Bytes it takes in the archive, padding between its streams included. + pub stored: u64, + /// Unpacked size. + pub size: u64, + /// Number of zlib streams (1 for a video). + pub streams: u32, + pub kind: Kind, + /// The first unpacked bytes (`head_len` of them). + pub head: [u8; 16], + pub head_len: u8, +} + +impl Entry { + fn native(e: &NativeEntry) -> Entry { + let kind = Kind::Native { slot: e.slot as u32 }; + Entry { offset: e.offset, stored: e.stored, size: e.size, streams: 1, kind, head: [0; 16], head_len: 0 } + } + + /// The first unpacked bytes. + pub fn head(&self) -> &[u8] { + &self.head[..usize::from(self.head_len).min(16)] + } + + /// Whether this looks like the start of a resource (a model, for + /// instance): they start 16 bytes into a 4 KiB page, with eight zero + /// bytes and a pointer into their own first part (`0x5000_0000` on). + pub fn is_resource(&self) -> bool { + let head = self.head(); + self.kind == Kind::Zlib + && self.offset % 4096 == 16 + && head.len() == 16 + && head[..8] == [0; 8] + && (0x5000_0000..0x5200_0000).contains(&u64::from_le_bytes(head[8..].try_into().unwrap_or_default())) + } + + /// An extension guessed from the first bytes: `bk2`, `awc`, `res`, `xml`, `txt`, the + /// magic of a known tagged format in lower case (`psin`), else `bin`. + pub fn extension(&self) -> String { + match self.kind { + Kind::Bink2 => return "bk2".into(), + Kind::Awc => return "awc".into(), + Kind::Zlib | Kind::Native { .. } => {} + } + if self.is_resource() { + return "res".into(); + } + extension_of(self.head()).unwrap_or_else(|| "bin".into()) + } +} + +/// An extension for a file that starts with these bytes (its first 16). +pub(crate) fn extension_of(head: &[u8]) -> Option { + if head.starts_with(b"ADAT") { + return Some("awc".into()); + } + if head.starts_with(b"KB2") { + return Some("bk2".into()); + } + let text = head.strip_prefix(b"\xEF\xBB\xBF").unwrap_or(head); + // Text only when all of the first bytes are: binary files start with + // `<` and a letter often enough (an offset table, for instance). + let printable = |b: &u8| b.is_ascii_graphic() || matches!(b, b' ' | b'\t' | b'\r' | b'\n'); + if !text.is_empty() && text.iter().all(printable) { + let markup = text.starts_with(b" Result, RpfError> + Send + Sync; + +fn indexer() -> &'static RwLock>> { + static INDEXER: OnceLock>>> = OnceLock::new(); + INDEXER.get_or_init(Default::default) +} + +/// Registers what [`Rpf9::entries`] calls to get an archive's entries. +/// Without one it scans the archive every time it is opened. +pub fn set_indexer(load: Arc) { + if let Ok(mut slot) = indexer().write() { + *slot = Some(load); + } +} + +/// The folder of the entries whose own names are known. +const NAMED: &str = "models"; + +/// Names of entries, found in their own data: a model carries its name. The +/// table of contents, which has all names, cannot be read. +#[derive(Debug, Default, Clone, PartialEq, Eq)] +pub struct Names { + by_offset: HashMap, + /// Lower-case name to offset. + by_name: HashMap, +} + +impl Names { + /// From entries' offsets and names. Characters that do not belong in a + /// file name are replaced; of entries with the same name, the later ones + /// (by offset) get `~2`, `~3`, … in front of the extension. + pub fn new(found: impl IntoIterator) -> Names { + let mut found: Vec<(u64, String)> = found.into_iter().collect(); + found.sort(); + let mut names = Names::default(); + for (offset, name) in found { + let clean: String = + name.chars().map(|c| if c.is_ascii_alphanumeric() || "_.#-".contains(c) { c } else { '_' }).collect(); + let clean = clean.trim_matches('.'); + if clean.is_empty() { + continue; + } + let (stem, ext) = clean.split_once('.').map_or((clean, String::new()), |(s, e)| (s, format!(".{e}"))); + let unique = (1..) + .map(|n| if n == 1 { clean.to_owned() } else { format!("{stem}~{n}{ext}") }) + .find(|candidate| !names.by_name.contains_key(&candidate.to_ascii_lowercase())); + let Some(unique) = unique else { continue }; + names.by_name.insert(unique.to_ascii_lowercase(), offset); + names.by_offset.insert(offset, unique); + } + names + } + + pub fn get(&self, offset: u64) -> Option<&str> { + self.by_offset.get(&offset).map(String::as_str) + } + + /// The offset of the entry with this name (case-insensitive). + pub fn offset_of(&self, name: &str) -> Option { + self.by_name.get(&name.to_ascii_lowercase()).copied() + } + + pub fn len(&self) -> usize { + self.by_offset.len() + } + + pub fn is_empty(&self) -> bool { + self.by_offset.is_empty() + } + + /// Offsets and names, sorted by offset. + pub fn iter(&self) -> impl Iterator { + let mut all: Vec<(u64, &str)> = self.by_offset.iter().map(|(o, n)| (*o, n.as_str())).collect(); + all.sort(); + all.into_iter() + } + + /// The folder a name is listed in: what it starts with, up to the first + /// `_` (`w` for weapons, `prop`, …); `other` without one. + fn group(name: &str) -> String { + match name.split_once('_') { + Some((start, _)) if (1..=12).contains(&start.len()) => start.to_ascii_lowercase(), + _ => "other".to_owned(), + } + } +} + +/// Loads the names of an archive's entries, for example from a cache. +pub type Namer = dyn Fn(&Rpf9) -> Option + Send + Sync; + +fn namer() -> &'static RwLock>> { + static NAMER: OnceLock>>> = OnceLock::new(); + NAMER.get_or_init(Default::default) +} + +/// Registers what [`Rpf9::names`] calls to get the names of an archive's entries. +pub fn set_namer(load: Arc) { + if let Ok(mut slot) = namer().write() { + *slot = Some(load); + } +} + +/// An opened RPF9 archive. +#[derive(Debug)] +pub struct Rpf9 { + path: PathBuf, + display: String, + header: Header, + size: u64, + /// Where the archive starts in the file: a nested one, inside its parent. + base: u64, + /// How many archives it lies in. + depth: u8, + /// The archive's own table, read on first use. + native: OnceLock>>, + /// Filled on first use: finding the entries means reading the archive. + entries: Mutex>>>, + /// Filled on first use. + names: Mutex>>, +} + +impl Rpf9 { + /// Whether these bytes start an RPF9 archive. + pub fn is_rpf9(start: &[u8]) -> bool { + start.len() >= 4 && crate::word(start, 0) == MAGIC + } + + /// Whether a file starts with the RPF9 magic. + pub fn file_is_rpf9(path: &Path) -> bool { + let mut head = [0u8; 4]; + File::open(path).and_then(|mut f| f.read_exact(&mut head)).is_ok() && Self::is_rpf9(&head) + } + + /// Opens an archive: reads its header, not its entries. + pub fn open(path: &Path) -> Result { + let display = path.display().to_string(); + let mut file = File::open(path)?; + let size = file.metadata()?.len(); + let mut head = [0u8; HEADER_LEN]; + if file.read_exact(&mut head).is_err() { + return Err(RpfError::Empty(display, size)); + } + let Some(header) = Header::parse(&head) else { + return Err(RpfError::BadMagic(display, crate::word(&head, 0))); + }; + if u64::from(header.data_offset) < HEADER_LEN as u64 || u64::from(header.data_offset) > size { + return Err(RpfError::CorruptToc { archive: display, reason: "the data starts outside the file".into() }); + } + Ok(Rpf9 { + path: path.to_path_buf(), + display, + header, + size, + base: 0, + depth: 0, + native: OnceLock::new(), + entries: Mutex::new(None), + names: Mutex::new(None), + }) + } + + /// The archive's own table; `None` without the game's executable (or + /// with another build's) and for damaged tables. + fn native(&self) -> Option<&NativeArchive> { + self.native.get_or_init(|| NativeArchive::cached(&self.path, self.base, self.size)).as_deref() + } + + /// Whether the archive's own table is read, rather than a recovery view + /// made by scanning. Decides it on first use, without a scan. + pub fn is_native(&self) -> bool { + self.native().is_some() + } + + /// Whether the archive lies inside another one. + pub fn is_nested(&self) -> bool { + self.base != 0 + } + + /// The record of an entry in the archive's own table. + fn native_entry(&self, entry: &Entry) -> Option<(&NativeArchive, &NativeEntry)> { + let Kind::Native { slot } = entry.kind else { return None }; + let native = self.native()?; + Some((native, native.catalog.entries.get(slot as usize)?)) + } + + /// Whether an entry is an archive that [`Rpf9::open_child`] opens. + pub fn is_archive(&self, entry: &Entry) -> bool { + self.native_entry(entry).is_some_and(|(_, e)| e.type_id == 0) + } + + /// The sizes of a resource's system and graphics parts, which follow + /// each other in its data. `None` for other files. + pub fn resource_parts(&self, entry: &Entry) -> Option<(u64, u64)> { + match self.native_entry(entry)?.1.storage { + Storage::Resource { system_flags, graphics_flags } => { + Some((u64::from(system_flags & 0x7fff_fff0), u64::from(graphics_flags & 0xffff_fff0))) + } + _ => None, + } + } + + /// The 32-bit name hash of an entry whose name is not known, if the + /// archive's own table has one: of its path without a known extension. + pub fn unnamed_hash(&self, entry: &Entry) -> Option { + let (native, e) = self.native_entry(entry)?; + e.name_hash32.filter(|_| native.is_unnamed(e)) + } + + /// Opens an archive inside this one. + pub fn open_child(&self, entry: &Entry) -> Result { + let display = format!("{}/{}", self.display, self.entry_name(entry)); + // Archives are stored as they are, so they can be read in place. + if !self.is_archive(entry) || entry.stored != entry.size { + return Err(RpfError::NotAnArchive(display)); + } + if self.depth >= crate::MAX_NESTING { + return Err(RpfError::TooDeep(display)); + } + let base = self.base + entry.offset; + let mut file = File::open(&self.path)?; + file.seek(SeekFrom::Start(base))?; + let mut head = [0u8; HEADER_LEN]; + file.read_exact(&mut head)?; + let Some(header) = Header::parse(&head) else { + return Err(RpfError::BadMagic(display, crate::word(&head, 0))); + }; + let child = Rpf9 { + path: self.path.clone(), + display, + header, + size: entry.size, + base, + depth: self.depth + 1, + native: OnceLock::new(), + entries: Mutex::new(None), + names: Mutex::new(None), + }; + if child.native().is_none() { + return Err(RpfError::CorruptToc { archive: child.display, reason: "its table cannot be read".into() }); + } + Ok(child) + } + + pub fn header(&self) -> Header { + self.header + } + + pub fn path(&self) -> &Path { + &self.path + } + + /// The archive's name for messages. + pub fn display_name(&self) -> &str { + &self.display + } + + /// Size of the archive file. + pub fn size(&self) -> u64 { + self.size + } + + /// Size of the data area: everything after the table of contents. + pub fn data_len(&self) -> u64 { + self.size - u64::from(self.header.data_offset) + } + + /// The entries if they have been loaded already. + pub fn loaded(&self) -> Option>> { + self.entries.lock().ok()?.clone() + } + + /// Sets the entries, for example from a stored index. + pub fn set_entries(&self, entries: Vec) { + if let Ok(mut slot) = self.entries.lock() { + *slot = Some(Arc::new(entries)); + } + } + + /// The entries: in the order of the archive's own table if that is read, + /// else sorted by offset. Then the first call loads them with the + /// registered [`set_indexer`] loader, or scans the archive, which reads + /// all of it. A failure is not remembered: the next call tries again. + pub fn entries(&self) -> Result>, RpfError> { + let mut slot = self.entries.lock().map_err(|_| RpfError::Cancelled)?; + if let Some(entries) = slot.as_ref() { + return Ok(Arc::clone(entries)); + } + let load = indexer().read().ok().and_then(|l| l.clone()); + let entries = Arc::new(match (self.native(), load) { + (Some(native), _) => native.catalog.entries.iter().map(Entry::native).collect(), + (None, Some(load)) => load(self)?, + (None, None) => self.scan(&AtomicBool::new(false), &|_, _| {})?, + }); + *slot = Some(Arc::clone(&entries)); + Ok(entries) + } + + /// Walks the data area and returns what it finds, sorted by offset. + /// `progress` gets the bytes read so far and the bytes to read; setting + /// `cancel` stops with [`RpfError::Cancelled`]. + pub fn scan(&self, cancel: &AtomicBool, progress: &(dyn Fn(u64, u64) + Sync)) -> Result, RpfError> { + let start = u64::from(self.header.data_offset); + let total = self.size - start; + let segments: Vec<(u64, u64)> = (0..total.div_ceil(SEGMENT)) + .map(|i| (start + i * SEGMENT, (start + (i + 1) * SEGMENT).min(self.size))) + .collect(); + let done = AtomicU64::new(0); + let found: Vec> = segments + .par_iter() + .map(|&(from, to)| { + let mut scanner = Scanner::new(File::open(&self.path)?, self.size); + scanner.streams(from, to, cancel, &mut |bytes| { + progress(done.fetch_add(bytes, Ordering::Relaxed) + bytes, total); + }) + }) + .collect::>()?; + Ok(join_chunks(found.into_iter().flatten())) + } + + /// The names found for entries of this archive. The first call asks the + /// registered [`set_namer`] loader; without one, or without stored + /// names, there are none. + pub fn names(&self) -> Arc { + let Ok(mut slot) = self.names.lock() else { return Arc::default() }; + if let Some(names) = slot.as_ref() { + return Arc::clone(names); + } + // The names of models in the recovery view; the table has its own. + let load = if self.is_native() { None } else { namer().read().ok().and_then(|l| l.clone()) }; + let names = Arc::new(load.and_then(|load| load(self)).unwrap_or_default()); + *slot = Some(Arc::clone(&names)); + names + } + + /// Sets the names of entries. + pub fn set_names(&self, names: Names) { + if let Ok(mut slot) = self.names.lock() { + *slot = Some(Arc::new(names)); + } + } + + /// The name of an entry: `/.`, in large + /// archives `//.`. An + /// entry whose own name is known (see [`Names`]) is + /// `models//`. + pub fn entry_name(&self, entry: &Entry) -> String { + self.entry_name_with(&self.names(), entry) + } + + fn entry_name_with(&self, names: &Names, entry: &Entry) -> String { + if let Some((native, e)) = self.native_entry(entry) { + return native.paths[e.slot].clone(); + } + if let Some(name) = names.get(entry.offset) { + return format!("{NAMED}/{}/{name}", Names::group(name)); + } + let ext = entry.extension(); + match self.bucket(entry) { + Some(bucket) => format!("{ext}/{bucket}/{:012x}.{ext}", entry.offset), + None => format!("{ext}/{:012x}.{ext}", entry.offset), + } + } + + fn bucket(&self, entry: &Entry) -> Option { + (self.size >= BUCKETED_FROM).then(|| format!("{:03}", entry.offset >> 30)) + } + + /// The entry with this name (case-insensitive). + pub fn find(&self, entries: &[Entry], path: &str) -> Option { + if let Some(native) = self.native() { + // Entries are in the order of the slots. + return native.find(path).filter(|slot| *slot < entries.len()); + } + let names = self.names(); + let file = path.rsplit('/').next()?; + let by_offset = file.split('.').next().and_then(|stem| u64::from_str_radix(stem, 16).ok()); + [by_offset, names.offset_of(file)].into_iter().flatten().find_map(|offset| { + let i = entries.binary_search_by_key(&offset, |e| e.offset).ok()?; + self.entry_name_with(&names, &entries[i]).eq_ignore_ascii_case(path).then_some(i) + }) + } + + /// The folders and files directly in `dir` ("" for the top): folder + /// names, and indices of the entries. + pub fn list_dir(&self, entries: &[Entry], dir: &str) -> (Vec, Vec) { + let names = self.names(); + let dir = dir.trim_matches('/').to_ascii_lowercase(); + let mut dirs = BTreeSet::new(); + let mut files = Vec::new(); + for (i, e) in entries.iter().enumerate() { + let name = self.entry_name_with(&names, e); + // What comes after `dir/` in the entry's path. + let rest = if dir.is_empty() { + Some(name.as_str()) + } else { + name.get(..dir.len()) + .filter(|start| start.eq_ignore_ascii_case(&dir)) + .and_then(|_| name[dir.len()..].strip_prefix('/')) + }; + match rest.map(|rest| rest.split_once('/')) { + Some(Some((folder, _))) => { + if !dirs.contains(folder) { + dirs.insert(folder.to_owned()); + } + } + Some(None) => files.push(i), + None => {} + } + } + (dirs.into_iter().collect(), files) + } + + /// Whether `dir` is a folder of the recovery view. + pub fn is_dir(&self, entries: &[Entry], dir: &str) -> bool { + let (dirs, files) = self.list_dir(entries, dir); + dir.is_empty() || !dirs.is_empty() || !files.is_empty() + } + + /// Writes an entry unpacked to `out` and returns the bytes written. + pub fn copy_to(&self, entry: &Entry, out: &mut dyn Write) -> Result { + let name = self.entry_name(entry); + if let Some((native, e)) = self.native_entry(entry) { + return native.copy_to(&self.path, self.base, e, out).map_err(|reason| RpfError::Inflate { + archive: self.display.clone(), + entry: name, + source: std::io::Error::new(std::io::ErrorKind::InvalidData, reason), + }); + } + let outside = || RpfError::OutOfBounds { archive: self.display.clone(), entry: name.clone() }; + if entry.offset < u64::from(self.header.data_offset) + || entry.stored == 0 + || entry.size == 0 + || entry.streams == 0 + || entry.offset.checked_add(entry.stored).is_none_or(|end| end > self.size) + { + return Err(outside()); + } + let mut file = File::open(&self.path)?; + file.seek(SeekFrom::Start(entry.offset))?; + let mut reader = BufReader::with_capacity(1 << 16, file.take(entry.stored)); + if entry.kind != Kind::Zlib { + if entry.size != entry.stored || entry.streams != 1 { + return Err(outside()); + } + let written = std::io::copy(&mut reader, out)?; + return if written == entry.size { Ok(written) } else { Err(outside()) }; + } + let inflate = |source| RpfError::Inflate { archive: self.display.clone(), entry: name.clone(), source }; + let (mut read, mut written) = (0u64, 0u64); + for _ in 0..entry.streams { + // Streams start aligned; the entry itself does too. + let padding = read.next_multiple_of(ALIGN) - read; + if padding > 0 { + let mut bytes = [0u8; ALIGN as usize]; + reader.read_exact(&mut bytes[..padding as usize])?; + } + let mut stream = flate2::bufread::ZlibDecoder::new(&mut reader); + // A stale or corrupt index must not cause unlimited output before + // the decoded length is checked. One extra byte detects overflow. + let limit = entry.size.saturating_sub(written).saturating_add(1); + written += std::io::copy(&mut (&mut stream).take(limit), out).map_err(inflate)?; + read += padding + stream.total_in(); + if written > entry.size { + return Err(inflate(std::io::Error::new( + std::io::ErrorKind::InvalidData, + "unpacked size exceeds the index", + ))); + } + } + if written != entry.size || read != entry.stored { + let short = std::io::Error::new(std::io::ErrorKind::InvalidData, "unpacked size differs from the index"); + return Err(inflate(short)); + } + Ok(written) + } + + /// Whether entry `i + 1` is stored right after entry `i` (on the next + /// 16-byte boundary): the parts of a resource follow each other so. + pub fn follows(entries: &[Entry], i: usize) -> bool { + match (entries.get(i), entries.get(i + 1)) { + (Some(a), Some(b)) => b.kind == Kind::Zlib && b.offset == (a.offset + a.stored).next_multiple_of(ALIGN), + _ => false, + } + } + + /// The first bytes of an entry, unpacked: up to `max`, or a little more. + pub fn read_start(&self, entry: &Entry, max: usize) -> Result, RpfError> { + struct Start(Vec, usize); + impl Write for Start { + fn write(&mut self, buf: &[u8]) -> std::io::Result { + if self.0.len() >= self.1 { + return Err(std::io::ErrorKind::WriteZero.into()); + } + self.0.extend_from_slice(buf); + Ok(buf.len()) + } + fn flush(&mut self) -> std::io::Result<()> { + Ok(()) + } + } + let mut start = Start(Vec::new(), max); + match self.copy_to(entry, &mut start) { + Err(e) if start.0.len() < max => Err(e), + _ => Ok(start.0), + } + } + + /// Reads the entry with index `i` of [`Rpf9::entries`] unpacked into memory. + pub fn read_at(&self, i: usize) -> Result, RpfError> { + let entries = self.entries()?; + let entry = entries.get(i).ok_or_else(|| RpfError::NotFound(format!("{}: entry {i}", self.display)))?; + self.read(entry) + } + + /// Reads an entry unpacked into memory (up to [`crate::MAX_UNPACKED`]). + pub fn read(&self, entry: &Entry) -> Result, RpfError> { + if entry.size > crate::MAX_UNPACKED { + let source = std::io::Error::new(std::io::ErrorKind::InvalidData, "too large to read into memory"); + return Err(RpfError::Inflate { archive: self.display.clone(), entry: self.entry_name(entry), source }); + } + let mut data = Vec::with_capacity(entry.size.min(crate::PREALLOCATE) as usize); + self.copy_to(entry, &mut data)?; + Ok(data) + } +} + +/// Joins the chunks of files stored in several streams: a stream that +/// unpacks to exactly [`CHUNK`] bytes continues in the stream right after +/// it. Streams that start inside an earlier one are dropped (a scanner that +/// started in the middle of a file can find such). +fn join_chunks(streams: impl Iterator) -> Vec { + let mut entries: Vec = Vec::new(); + // Unpacked size of the stream before, when the next may continue it. + let mut last_size = 0; + for s in streams { + if let Some(prev) = entries.last_mut() { + let end = prev.offset + prev.stored; + if s.offset < end { + continue; + } + let continues = s.kind == Kind::Zlib + && prev.kind == Kind::Zlib + && last_size == CHUNK + && s.offset == end.next_multiple_of(ALIGN); + if continues { + prev.stored = s.offset + s.stored - prev.offset; + prev.size += s.size; + prev.streams += 1; + last_size = s.size; + continue; + } + } + last_size = s.size; + entries.push(Entry { + offset: s.offset, + stored: s.stored, + size: s.size, + streams: 1, + kind: s.kind, + head: s.head, + head_len: s.head_len, + }); + } + entries +} + +/// Reads a file through a window that moves forward with the scan. +struct Scanner { + file: File, + size: u64, + buf: Vec, + /// File offset of `buf[0]`. + base: u64, + scratch: Vec, +} + +impl Scanner { + fn new(file: File, size: u64) -> Scanner { + Scanner { file, size, buf: Vec::new(), base: 0, scratch: vec![0; 1 << 16] } + } + + /// The bytes from `pos` on: as many as the window holds, none at the end + /// of the file. + fn at(&mut self, pos: u64) -> Result<&[u8], RpfError> { + let end = self.base + self.buf.len() as u64; + let have = if pos >= self.base && pos < end { (end - pos) as usize } else { 0 }; + if have < WINDOW_MIN && end.max(pos) < self.size || have == 0 { + let len = (self.size.saturating_sub(pos)).min(WINDOW as u64) as usize; + self.buf.resize(len, 0); + self.file.seek(SeekFrom::Start(pos))?; + self.file.read_exact(&mut self.buf)?; + self.base = pos; + } + Ok(&self.buf[(pos - self.base) as usize..]) + } + + /// The streams that start in `from..to`; the last one may end after `to`. + fn streams( + &mut self, + from: u64, + to: u64, + cancel: &AtomicBool, + advanced: &mut dyn FnMut(u64), + ) -> Result, RpfError> { + let mut found = Vec::new(); + let (mut pos, mut reported) = (from, from); + while pos < to { + if cancel.load(Ordering::Relaxed) { + return Err(RpfError::Cancelled); + } + if pos - reported >= 16 << 20 { + advanced(pos - reported); + reported = pos; + } + let buf = self.at(pos)?; + let len = buf.len().min((to - pos) as usize); + let Some(i) = memchr::memchr3(0x78, b'K', b'A', &buf[..len]) else { + pos += len as u64; + continue; + }; + let candidate = pos + i as u64; + pos = match self.stream_at(candidate, cancel)? { + Some(s) => { + let end = s.offset + s.stored; + found.push(s); + end + } + None => candidate + 1, + }; + } + advanced(to - reported.min(to)); + Ok(found) + } + + /// The zlib stream, Bink 2 video or audio container that starts at `pos`, + /// if one does. + fn stream_at(&mut self, pos: u64, cancel: &AtomicBool) -> Result, RpfError> { + let size = self.size; + let start = self.at(pos)?; + if start.len() >= 28 && &start[..3] == b"KB2" && start[3].is_ascii_lowercase() { + // Bink 2: length without the first 8 bytes, frame count, …, width, height. + let total = u64::from(crate::word(start, 4)) + 8; + let (frames, width, height) = (crate::word(start, 8), crate::word(start, 20), crate::word(start, 24)); + let plausible = (1..=10_000_000).contains(&frames) + && (1..=16_384).contains(&width) + && (1..=16_384).contains(&height) + && total >= 28 + && total <= size - pos; + let mut head = [0u8; 16]; + head.copy_from_slice(&start[..16]); + return Ok(plausible.then_some(Stream { + offset: pos, + stored: total, + size: total, + kind: Kind::Bink2, + head, + head_len: 16, + })); + } + if pos.is_multiple_of(ALIGN) + && let Some(total) = awc_len(start) + { + let mut head = [0u8; 16]; + head.copy_from_slice(&start[..16]); + return Ok((total <= size - pos).then_some(Stream { + offset: pos, + stored: total, + size: total, + kind: Kind::Awc, + head, + head_len: 16, + })); + } + if start.len() < 2 || start[0] != 0x78 || !matches!(start[1], 0x01 | 0x5E | 0x9C | 0xDA) { + return Ok(None); + } + let mut inflater = flate2::Decompress::new(true); + let mut scratch = std::mem::take(&mut self.scratch); + let (mut head, mut head_len) = ([0u8; 16], 0usize); + let result = loop { + if cancel.load(Ordering::Relaxed) { + self.scratch = scratch; + return Err(RpfError::Cancelled); + } + let (read, written) = (inflater.total_in(), inflater.total_out()); + let input = match self.at(pos + read) { + Ok(input) if !input.is_empty() => input, + Ok(_) => break None, + Err(e) => { + self.scratch = scratch; + return Err(e); + } + }; + let status = inflater.decompress(input, &mut scratch, flate2::FlushDecompress::None); + let produced = (inflater.total_out() - written) as usize; + let take = produced.min(16 - head_len); + head[head_len..head_len + take].copy_from_slice(&scratch[..take]); + head_len += take; + match status { + Ok(flate2::Status::StreamEnd) => break Some(()), + Ok(_) if inflater.total_in() > read || produced > 0 => {} + _ => break None, + } + }; + self.scratch = scratch; + Ok(result.filter(|()| inflater.total_out() > 0).map(|()| Stream { + offset: pos, + stored: inflater.total_in(), + size: inflater.total_out(), + kind: Kind::Zlib, + head, + head_len: head_len as u8, + })) + } +} + +/// The length of the audio container that starts here, from its own tables: +/// `ADAT`, version 1, flags, stream count, header length; optional tables +/// chosen by the flags; a word per stream (id, and in the top three bits its +/// number of chunks); a 64-bit word per chunk (type, size, offset). The +/// container ends where its last chunk does. +fn awc_len(start: &[u8]) -> Option { + if start.len() < 16 || &start[..4] != b"ADAT" || start[4..6] != [1, 0] { + return None; + } + let flags = u16::from_le_bytes([start[6], start[7]]); + let count = crate::word(start, 8) as usize; + let header = u64::from(crate::word(start, 12)); + if !(1..=1 << 16).contains(&count) { + return None; + } + let mut at = 16; + for (flag, len) in [(0x01, count * 2), (0x20, (count + 1) * 4), (0x40, 4)] { + if flags & flag != 0 { + at += len; + } + } + let streams = start.get(at..at + count * 4)?; + let chunks: usize = streams.as_chunks::<4>().0.iter().map(|w| usize::from(w[3] >> 5)).sum(); + at += count * 4; + let table = start.get(at..at + chunks * 8)?; + if (at + chunks * 8) as u64 > header { + return None; + } + let mut end = header; + for c in table.as_chunks::<8>().0 { + let v = u64::from_le_bytes(*c); + end = end.max((v & 0x0FFF_FFFF) + ((v >> 28) & 0x0FFF_FFFF)); + } + Some(end) +} + +const INDEX_RECORD: usize = 46; + +/// The entries as bytes, to store them (see [`decode_index`]). +pub fn encode_index(entries: &[Entry]) -> Vec { + let mut out = Vec::with_capacity(entries.len() * INDEX_RECORD); + for e in entries { + out.extend_from_slice(&e.offset.to_le_bytes()); + out.extend_from_slice(&e.stored.to_le_bytes()); + out.extend_from_slice(&e.size.to_le_bytes()); + out.extend_from_slice(&e.streams.to_le_bytes()); + out.push(match e.kind { + Kind::Zlib => 0, + Kind::Bink2 => 1, + Kind::Awc => 2, + // Read from the archive, never stored. + Kind::Native { .. } => u8::MAX, + }); + out.push(e.head_len.min(16)); + out.extend_from_slice(&e.head); + } + out +} + +/// Entries stored with [`encode_index`]; `None` if the bytes are not such a +/// list or it is not sorted by offset. +pub fn decode_index(data: &[u8]) -> Option> { + let (records, rest) = data.as_chunks::(); + if !rest.is_empty() { + return None; + } + let u64_at = |r: &[u8], at: usize| Some(u64::from_le_bytes(r.get(at..at + 8)?.try_into().ok()?)); + let mut entries = Vec::with_capacity(records.len()); + for r in records { + let kind = match r[28] { + 0 => Kind::Zlib, + 1 => Kind::Bink2, + 2 => Kind::Awc, + _ => return None, + }; + let entry = Entry { + offset: u64_at(r, 0)?, + stored: u64_at(r, 8)?, + size: u64_at(r, 16)?, + streams: crate::word(r, 24), + kind, + head: r[30..46].try_into().ok()?, + head_len: r[29], + }; + let end = entry.offset.checked_add(entry.stored)?; + if entry.offset < HEADER_LEN as u64 + || entry.stored == 0 + || entry.size == 0 + || entry.streams == 0 + || entry.head_len > 16 + || u64::from(entry.head_len) > entry.size + || (entry.kind != Kind::Zlib && (entry.stored != entry.size || entry.streams != 1)) + || u64::from(entry.streams) > entry.stored + || end <= entry.offset + || entries.last().is_some_and(|prev: &Entry| prev.offset + prev.stored > entry.offset) + { + return None; + } + entries.push(entry); + } + Some(entries) +} + +#[cfg(test)] +mod tests { + use super::*; + use flate2::Compression; + use flate2::write::ZlibEncoder; + + /// An audio container of one stream with two chunks, the last one + /// ending at `end`; `flags` chooses the optional tables. + fn awc(flags: u16, end: u32) -> Vec { + let mut out = b"ADAT".to_vec(); + out.extend_from_slice(&1u16.to_le_bytes()); + out.extend_from_slice(&flags.to_le_bytes()); + out.extend_from_slice(&1u32.to_le_bytes()); + let tables: u32 = + [(0x01, 2), (0x20, 8), (0x40, 4)].iter().filter(|(f, _)| flags & f != 0).map(|(_, n)| n).sum(); + let header = 16 + tables + 4 + 16; + out.extend_from_slice(&header.to_le_bytes()); + out.resize(16 + tables as usize, 0xEE); + out.extend_from_slice(&(7u32 | (2 << 29)).to_le_bytes()); + let chunk = |kind: u64, size: u32, offset: u32| (kind << 56) | (u64::from(size) << 28) | u64::from(offset); + out.extend_from_slice(&chunk(0x76, 32, header).to_le_bytes()); + out.extend_from_slice(&chunk(0x55, end - header - 32, header + 32).to_le_bytes()); + out.resize(end as usize, 0x55); + out + } + + #[test] + fn named_entries_are_listed_by_their_names() { + let names = Names::new([ + (0x300, "w_pistol.#dr".to_owned()), + (0x200, "W_Pistol.#dr".to_owned()), + (0x400, "odd name/..#ft".to_owned()), + (0x500, String::new()), + ]); + assert_eq!(names.len(), 3); + // The same name twice: the later entry gets a number. + assert_eq!((names.get(0x200), names.get(0x300)), (Some("W_Pistol.#dr"), Some("w_pistol~2.#dr"))); + assert_eq!(names.get(0x400), Some("odd_name_..#ft")); + assert_eq!(names.offset_of("w_PISTOL~2.#DR"), Some(0x300)); + assert_eq!((Names::group("w_pistol.#dr"), Names::group("plain.#dr")), ("w".to_owned(), "other".to_owned())); + + let (data, _) = archive(); + let dir = std::env::temp_dir().join(format!("rage-rpf9-names-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let path = dir.join("named.rpf"); + std::fs::write(&path, &data).unwrap(); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap(); + rpf.set_names(Names::new([(entries[0].offset, "veh_car.#ft".to_owned())])); + assert_eq!(rpf.entry_name(&entries[0]), "models/veh/veh_car.#ft"); + assert_eq!(rpf.find(&entries, "Models/VEH/veh_car.#ft"), Some(0)); + assert_eq!(rpf.find(&entries, "xml/000000000100.xml"), None); + assert_eq!(rpf.find(&entries, &rpf.entry_name(&entries[1])), Some(1)); + assert_eq!(rpf.list_dir(&entries, "").0, ["bin", "bk2", "models", "psin"]); + assert_eq!(rpf.list_dir(&entries, "models"), (vec!["veh".to_owned()], vec![])); + assert_eq!(rpf.list_dir(&entries, "models/veh"), (vec![], vec![0])); + // The start of a large entry: at least what was asked for, not all of it. + let start = rpf.read_start(&entries[1], 100).unwrap(); + assert!(start.len() >= 100 && (start.len() as u64) < entries[1].size); + assert_eq!(rpf.read_start(&entries[0], 1 << 20).unwrap(), rpf.read(&entries[0]).unwrap()); + std::fs::remove_dir_all(dir).unwrap(); + } + + #[test] + fn finds_audio_containers_by_their_own_tables() { + assert_eq!(awc_len(&awc(0xFF21, 0x900)), Some(0x900)); + assert_eq!(awc_len(&awc(0xFF61, 0x400)), Some(0x400)); + // Not version 1, no streams, a chunk table that is cut off. + let mut other = awc(0xFF21, 0x900); + other[4] = 2; + assert_eq!(awc_len(&other), None); + other = awc(0xFF21, 0x900); + other[8] = 0; + assert_eq!(awc_len(&other), None); + assert_eq!(awc_len(&awc(0xFF21, 0x900)[..40]), None); + + let mut data = vec![0u8; 0x100]; + data[..4].copy_from_slice(&MAGIC.to_le_bytes()); + data[4..8].copy_from_slice(&0x100u32.to_le_bytes()); + data.extend(zlib(b"some text in front")); + pad(&mut data); + let at = data.len() as u64; + data.extend(awc(0xFF21, 0x900)); + pad(&mut data); + data.extend(zlib(b"and some after it")); + let dir = std::env::temp_dir().join(format!("rage-rpf9-awc-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let path = dir.join("audio.rpf"); + std::fs::write(&path, &data).unwrap(); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap(); + let kinds: Vec = entries.iter().map(|e| e.kind).collect(); + assert_eq!(kinds, [Kind::Zlib, Kind::Awc, Kind::Zlib]); + assert_eq!((entries[1].offset, entries[1].stored, entries[1].extension().as_str()), (at, 0x900, "awc")); + assert_eq!(rpf.read(&entries[1]).unwrap(), awc(0xFF21, 0x900)); + assert_eq!(decode_index(&encode_index(&entries)).as_deref(), Some(&entries[..])); + std::fs::remove_dir_all(dir).unwrap(); + } + + fn zlib(data: &[u8]) -> Vec { + let mut enc = ZlibEncoder::new(Vec::new(), Compression::default()); + enc.write_all(data).unwrap(); + enc.finish().unwrap() + } + + fn pad(out: &mut Vec) { + out.resize(out.len().next_multiple_of(ALIGN as usize), 0); + } + + /// An archive with an opaque table and, in its data area: a small XML + /// file, a file of two and a half chunks, noise with a stream header that + /// leads nowhere, a Bink 2 video, a tagged binary. + fn archive() -> (Vec, Vec) { + let mut out = vec![0u8; 0x100]; + out[..4].copy_from_slice(&MAGIC.to_le_bytes()); + out[4..8].copy_from_slice(&0x100u32.to_le_bytes()); + out[0x40..0x100].fill(0xA7); + out.extend(zlib(b"")); + pad(&mut out); + let big: Vec = (0..CHUNK as usize * 2 + 1000).map(|i| (i * 31 % 251) as u8).collect(); + for chunk in big.chunks(CHUNK as usize) { + out.extend(zlib(chunk)); + pad(&mut out); + } + out.extend([0x78, 0x9C, 0xFF, 0xFF, 0x13, 0x37, b'K', b'B', b'2', 0x00]); + pad(&mut out); + let mut video = vec![0u8; 64]; + video[..4].copy_from_slice(b"KB2j"); + video[4..8].copy_from_slice(&56u32.to_le_bytes()); + video[8..12].copy_from_slice(&30u32.to_le_bytes()); + video[20..24].copy_from_slice(&1920u32.to_le_bytes()); + video[24..28].copy_from_slice(&1080u32.to_le_bytes()); + out.extend(&video); + pad(&mut out); + out.extend(zlib(b"PSIN\x01\x00\x00\x00rest of a tagged file")); + (out, big) + } + + fn write(name: &str, data: &[u8]) -> PathBuf { + let path = std::env::temp_dir().join(format!("openrage-rpf9-{}-{name}.rpf", std::process::id())); + std::fs::write(&path, data).unwrap(); + path + } + + #[test] + fn scan_finds_and_joins_streams() { + let (data, big) = archive(); + let path = write("scan", &data); + let rpf = Rpf9::open(&path).unwrap(); + assert_eq!(rpf.header().data_offset, 0x100); + let entries = rpf.entries().unwrap(); + let names: Vec = entries.iter().map(|e| rpf.entry_name(e)).collect(); + let exts: Vec<&str> = names.iter().map(|n| n.split('/').next().unwrap()).collect(); + assert_eq!(exts, ["xml", "bin", "bk2", "psin"]); + assert_eq!(names[0], "xml/000000000100.xml"); + assert_eq!((entries[1].streams, entries[1].size), (3, big.len() as u64)); + assert_eq!(rpf.read(&entries[1]).unwrap(), big); + assert_eq!(rpf.read(&entries[0]).unwrap(), b""); + assert_eq!(rpf.read(&entries[2]).unwrap().len(), 64); + assert!(rpf.read(&entries[3]).unwrap().starts_with(b"PSIN")); + + assert_eq!(rpf.find(&entries, &names[3].to_ascii_uppercase()), Some(3)); + assert_eq!(rpf.find(&entries, "xml/000000000101.xml"), None); + assert_eq!(rpf.find(&entries, &names[3].replace("psin/", "xml/")), None); + let (dirs, files) = rpf.list_dir(&entries, ""); + assert_eq!((dirs, files.len()), (vec!["bin".into(), "bk2".into(), "psin".into(), "xml".into()], 0)); + assert_eq!(rpf.list_dir(&entries, "psin"), (vec![], vec![3])); + assert!(rpf.is_dir(&entries, "bk2") && !rpf.is_dir(&entries, "ytd") && !rpf.is_dir(&entries, "xml/000")); + + assert_eq!(decode_index(&encode_index(&entries)).as_deref(), Some(&entries[..])); + assert_eq!(decode_index(&encode_index(&entries)[1..]), None); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn a_stream_with_a_wrong_checksum_is_not_a_file() { + let mut data = vec![0u8; 0x40]; + data[..4].copy_from_slice(&MAGIC.to_le_bytes()); + data[4..8].copy_from_slice(&0x40u32.to_le_bytes()); + let mut stream = zlib(b"some text that is long enough to matter"); + let last = stream.len() - 1; + stream[last] ^= 0x55; + data.extend(stream); + let path = write("checksum", &data); + assert_eq!(Rpf9::open(&path).unwrap().entries().unwrap().len(), 0); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn scan_can_be_cancelled_and_rejects_bad_headers() { + let (data, _) = archive(); + let path = write("cancel", &data); + let rpf = Rpf9::open(&path).unwrap(); + assert!(matches!(rpf.scan(&AtomicBool::new(true), &|_, _| {}), Err(RpfError::Cancelled))); + let mut bad = data.clone(); + bad[4..8].copy_from_slice(&u32::MAX.to_le_bytes()); + std::fs::write(&path, &bad).unwrap(); + assert!(matches!(Rpf9::open(&path), Err(RpfError::CorruptToc { .. }))); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn clear_header_reports_native_slots_and_transform_tag() { + let mut bytes = [0u8; HEADER_LEN]; + bytes[..4].copy_from_slice(&MAGIC.to_le_bytes()); + bytes[4..8].copy_from_slice(&0x9580u32.to_le_bytes()); + bytes[0x24..0x28].copy_from_slice(&418u32.to_le_bytes()); + bytes[0x2e] = 9; + let header = Header::parse(&bytes).unwrap(); + assert_eq!(header.data_offset, 0x9580); + assert_eq!(header.entry_count, 418); + assert_eq!(header.toc_transform, 9); + assert!(Header::parse(&bytes[..HEADER_LEN - 1]).is_none()); + } + + #[test] + fn a_stream_scan_honors_cancellation_during_inflate() { + let (data, _) = archive(); + let path = write("cancel-inflate", &data); + let mut scanner = Scanner::new(File::open(&path).unwrap(), data.len() as u64); + assert!(matches!(scanner.stream_at(0x100, &AtomicBool::new(true)), Err(RpfError::Cancelled))); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn extraction_rejects_bad_lengths_and_truncated_stored_files() { + let (data, _) = archive(); + let path = write("read-bounds", &data); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.entries().unwrap(); + let mut entry = entries[0].clone(); + entry.size = 1; + let mut out = Vec::new(); + assert!(rpf.copy_to(&entry, &mut out).is_err()); + assert!(out.len() <= 2); + entry = entries[0].clone(); + entry.offset = 0; + assert!(matches!(rpf.copy_to(&entry, &mut Vec::new()), Err(RpfError::OutOfBounds { .. }))); + + // The file can be replaced after opening an archive. Stored media + // must report a short read just as compressed entries do. + let entry = &entries[2]; + std::fs::OpenOptions::new().write(true).open(&path).unwrap().set_len(entry.offset + 10).unwrap(); + assert!(rpf.copy_to(entry, &mut Vec::new()).is_err()); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn cached_entries_reject_overflow_overlap_and_invalid_records() { + let (data, _) = archive(); + let path = write("index-bounds", &data); + let entries = Rpf9::open(&path).unwrap().entries().unwrap(); + let encoded = encode_index(&entries); + for (at, bytes) in [ + (0, u64::MAX.to_le_bytes().to_vec()), + (8, 0u64.to_le_bytes().to_vec()), + (24, 0u32.to_le_bytes().to_vec()), + (29, vec![17]), + (INDEX_RECORD, entries[0].offset.to_le_bytes().to_vec()), + ] { + let mut bad = encoded.clone(); + bad[at..at + bytes.len()].copy_from_slice(&bytes); + assert!(decode_index(&bad).is_none(), "accepted invalid field at {at}"); + } + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn extensions_come_from_the_first_bytes() { + let ext = |head: &[u8]| { + let mut e = + Entry { offset: 0, stored: 0, size: 0, streams: 1, kind: Kind::Zlib, head: [0; 16], head_len: 0 }; + e.head[..head.len()].copy_from_slice(head); + e.head_len = head.len() as u8; + e.extension() + }; + assert_eq!(ext(b"\xEF\xBB\xBF\r\n "), "xml"); + assert_eq!(ext(b"NAME = value\r\n"), "txt"); + assert_eq!(ext(b"PSIN\x00\x01\x02\x03"), "psin"); + assert_eq!(ext(b"0DRP\x00\x00\x00\x00"), "0drp"); + assert_eq!(ext(b"17MY\x00\x00\x00\x00"), "bin"); + assert_eq!(ext(b"\x00\x00\x00\x00"), "bin"); + assert_eq!(ext(b""), "bin"); + } +} diff --git a/crates/rage-rpf/src/rpf9_cipher.rs b/crates/rage-rpf/src/rpf9_cipher.rs new file mode 100644 index 0000000..954b54e --- /dev/null +++ b/crates/rage-rpf/src/rpf9_cipher.rs @@ -0,0 +1,357 @@ +//! The Scarlett build's table-driven 16-byte block transform. +//! +//! Reconstructed from the instructions at VA 0x145642c50 of the executable +//! identified below. Tables and key schedules are read from the user's file; +//! none are bundled. This module supports only that exact executable build. + +use std::collections::BTreeMap; + +use sha2::{Digest, Sha256}; + +const EXE_SHA256: [u8; 32] = [ + 0xe9, 0x50, 0x20, 0xb2, 0xfa, 0x4a, 0x72, 0x1d, 0xb3, 0xdf, 0x59, 0xfd, 0xec, 0xf7, 0x56, 0x21, 0x73, 0x0a, 0xc5, + 0x59, 0xd8, 0x83, 0x52, 0x52, 0xf6, 0xc3, 0xb6, 0x58, 0xd5, 0xa0, 0x89, 0x93, +]; +const INITIAL_VA: u64 = 0x146036f30; +const MIDDLE_VA: u64 = 0x146037f30; +const KEY_TABLE_VA: u64 = 0x1466e5900; +const KEY_RECORDS: usize = 24; +const KEY_BLOB_LEN: usize = 0x10f4; + +struct Key { + words: [u32; 60], + end: Vec, +} + +/// Cipher material extracted from a supported local executable. +pub(crate) struct Cipher { + initial: Vec, + middle: Vec, + keys: BTreeMap, + header_iv: [u8; 16], + ctr_initial: Vec, + ctr_middle: Vec, + ctr_keys: BTreeMap, +} + +impl Cipher { + /// Returns `None` for an unknown build or inconsistent PE/key layout. + pub(crate) fn from_exe(exe: &[u8]) -> Option { + if Sha256::digest(exe).as_slice() != EXE_SHA256 { + return None; + } + let initial = pe_bytes(exe, INITIAL_VA, 16 * 256)?.to_vec(); + let header_iv = pe_bytes(exe, 0x1462fd470, 16)?.try_into().ok()?; + let ctr_initial = pe_bytes(exe, 0x146040f30, 16 * 256)?.to_vec(); + let ctr_middle = pe_bytes(exe, 0x146041f30, 16 * 256 * 4)? + .as_chunks::<4>() + .0 + .iter() + .map(|word| u32::from_le_bytes(*word)) + .collect(); + let middle = pe_bytes(exe, MIDDLE_VA, 16 * 256 * 4)? + .as_chunks::<4>() + .0 + .iter() + .map(|word| u32::from_le_bytes(*word)) + .collect(); + let mut keys = BTreeMap::new(); + let mut ctr_keys = BTreeMap::new(); + for record in pe_bytes(exe, KEY_TABLE_VA, KEY_RECORDS * 24)?.as_chunks::<24>().0 { + let tag = u64::from_le_bytes(record[..8].try_into().ok()?); + // The native key lookup uses class 2 for decrypt state 1. + if tag as u32 != 0x02000000 { + continue; + } + let address = u64::from_le_bytes(record[8..16].try_into().ok()?); + let len = u64::from_le_bytes(record[16..24].try_into().ok()?); + if len != KEY_BLOB_LEN as u64 { + return None; + } + let blob = pe_bytes(exe, address, KEY_BLOB_LEN)?; + let magic = u32::from_le_bytes(blob[..4].try_into().ok()?); + if !matches!(magic, 0x4e3b9b8e | 0x2718ce5d) { + // Other algorithms share this key registry. Their serialized + // blobs have different magics and must not be treated as this + // transform's context. + continue; + } + let words = std::array::from_fn(|i| { + u32::from_le_bytes(blob[4 + i * 4..8 + i * 4].try_into().expect("bounded word")) + }); + let target = if magic == 0x4e3b9b8e { &mut keys } else { &mut ctr_keys }; + target.insert((tag >> 32) as u32, Key { words, end: blob[0xf4..].to_vec() }); + } + Some(Self { initial, middle, keys, header_iv, ctr_initial, ctr_middle, ctr_keys }) + } + + pub(crate) fn header_iv(&self) -> [u8; 16] { + self.header_iv + } + + pub(crate) fn has_key(&self, id: u32) -> bool { + self.keys.contains_key(&id) + } + + /// The pure block transform, without a chaining mode or padding. + pub(crate) fn decrypt_block(&self, id: u32, input: &[u8; 16]) -> Option<[u8; 16]> { + let key = self.keys.get(&id)?; + let mut state = [0u32; 4]; + for (column, word) in state.iter_mut().enumerate() { + for byte in 0..4 { + let i = column * 4 + byte; + *word = (*word << 8) ^ u32::from(self.initial[i * 256 + usize::from(input[i])]); + } + *word ^= key.words[column]; + } + let t = |table: usize, word: u32, shift: u32| self.middle[table * 256 + ((word >> shift) & 255) as usize]; + // The native loop processes pairs of rounds, then exits after the + // first half of its seventh iteration (13 rounds in total). + for round in 1..=13 { + let [a, b, c, d] = state; + state = [ + t(0, a, 24) ^ t(7, b, 0) ^ t(10, c, 8) ^ t(13, d, 16) ^ key.words[round * 4], + t(4, b, 24) ^ t(11, c, 0) ^ t(1, a, 16) ^ t(14, d, 8) ^ key.words[round * 4 + 1], + t(8, c, 24) ^ t(15, d, 0) ^ t(2, a, 8) ^ t(5, b, 16) ^ key.words[round * 4 + 2], + t(12, d, 24) ^ t(3, a, 0) ^ t(6, b, 8) ^ t(9, c, 16) ^ key.words[round * 4 + 3], + ]; + } + let [a, b, c, d] = state; + let selected = [ + a >> 24, + d >> 16, + c >> 8, + b, + b >> 24, + a >> 16, + d >> 8, + c, + c >> 24, + b >> 16, + a >> 8, + d, + d >> 24, + c >> 16, + b >> 8, + a, + ]; + Some(std::array::from_fn(|i| key.end[i * 256 + (selected[i] & 255) as usize])) + } + + /// Decrypts complete CBC blocks and updates the caller-owned chaining + /// state, permitting successive metadata spans to share a chain. + pub(crate) fn decrypt_cbc(&self, id: u32, bytes: &mut [u8], iv: &mut [u8; 16]) -> Option<()> { + if !bytes.len().is_multiple_of(16) || !self.has_key(id) { + return None; + } + for block in bytes.as_chunks_mut::<16>().0 { + let stored = *block; + let plain = self.decrypt_block(id, &stored)?; + for i in 0..16 { + block[i] = plain[i] ^ iv[i]; + } + *iv = stored; + } + Some(()) + } + + /// The counter-mode keystream primitive at VA `0x1456437c0`. This is a + /// separate transform from the CBC block primitive, with its own tables. + pub(crate) fn counter_block(&self, id: u32, input: &[u8; 16]) -> Option<[u8; 16]> { + let key = self.ctr_keys.get(&id)?; + let mut state = [0u32; 4]; + for (column, word) in state.iter_mut().enumerate() { + for byte in 0..4 { + let i = column * 4 + byte; + *word = (*word << 8) ^ u32::from(self.ctr_initial[i * 256 + usize::from(input[i])]); + } + *word ^= key.words[column]; + } + let t = |table: usize, word: u32, shift: u32| self.ctr_middle[table * 256 + ((word >> shift) & 255) as usize]; + for round in 1..=13 { + let [a, b, c, d] = state; + state = [ + t(0, a, 24) ^ t(5, b, 16) ^ t(10, c, 8) ^ t(15, d, 0) ^ key.words[round * 4], + t(4, b, 24) ^ t(9, c, 16) ^ t(14, d, 8) ^ t(3, a, 0) ^ key.words[round * 4 + 1], + t(8, c, 24) ^ t(13, d, 16) ^ t(2, a, 8) ^ t(7, b, 0) ^ key.words[round * 4 + 2], + t(12, d, 24) ^ t(1, a, 16) ^ t(6, b, 8) ^ t(11, c, 0) ^ key.words[round * 4 + 3], + ]; + } + let [a, b, c, d] = state; + let selected = [ + a >> 24, + b >> 16, + c >> 8, + d, + b >> 24, + c >> 16, + d >> 8, + a, + c >> 24, + d >> 16, + a >> 8, + b, + d >> 24, + a >> 16, + b >> 8, + c, + ]; + Some(std::array::from_fn(|i| key.end[i * 256 + (selected[i] & 255) as usize])) + } + + /// XORs bytes with algorithm 17's stream at `offset` bytes from the + /// beginning of an encrypted member. The native implementation increments + /// the full 16-byte counter in big-endian order after using each block. + /// `iv` is the descriptor's initial counter and is never modified. + pub(crate) fn crypt_ctr(&self, id: u32, bytes: &mut [u8], iv: &[u8; 16], offset: u64) -> Option<()> { + if !self.ctr_keys.contains_key(&id) { + return None; + } + let mut counter = u128::from_be_bytes(*iv).wrapping_add(u128::from(offset / 16)); + let mut skip = (offset % 16) as usize; + let mut at = 0; + while at < bytes.len() { + let stream = self.counter_block(id, &counter.to_be_bytes())?; + let take = (16 - skip).min(bytes.len() - at); + for i in 0..take { + bytes[at + i] ^= stream[skip + i]; + } + at += take; + skip = 0; + counter = counter.wrapping_add(1); + } + Some(()) + } +} + +/// Converts an original-file PE address to a bounded source range. No +/// executable code is loaded or run by the parser. +fn pe_bytes(exe: &[u8], address: u64, len: usize) -> Option<&[u8]> { + if exe.get(..2)? != b"MZ" { + return None; + } + let pe = u32::from_le_bytes(exe.get(0x3c..0x40)?.try_into().ok()?) as usize; + if exe.get(pe..pe.checked_add(4)?)? != b"PE\0\0" { + return None; + } + let count = u16::from_le_bytes(exe.get(pe + 6..pe + 8)?.try_into().ok()?) as usize; + let opt_len = u16::from_le_bytes(exe.get(pe + 20..pe + 22)?.try_into().ok()?) as usize; + if count > 96 || opt_len < 32 || exe.get(pe + 24..pe + 26)? != [0x0b, 0x02] { + return None; + } + let base = u64::from_le_bytes(exe.get(pe + 48..pe + 56)?.try_into().ok()?); + let rva = address.checked_sub(base)?; + let start = pe.checked_add(24)?.checked_add(opt_len)?; + let sections = exe.get(start..start.checked_add(count.checked_mul(40)?)?)?; + for section in sections.as_chunks::<40>().0 { + let virtual_start = u32::from_le_bytes(section[12..16].try_into().ok()?) as u64; + let stored_len = u32::from_le_bytes(section[16..20].try_into().ok()?) as u64; + let stored_start = u32::from_le_bytes(section[20..24].try_into().ok()?) as u64; + let Some(relative) = rva.checked_sub(virtual_start) else { continue }; + if relative.checked_add(len as u64)? > stored_len { + continue; + } + let offset = usize::try_from(stored_start.checked_add(relative)?).ok()?; + return exe.get(offset..offset.checked_add(len)?); + } + None +} + +#[cfg(test)] +mod tests { + use super::*; + + // Zero tables produce a constant zero block. This isolates the CBC + // chaining contract from the reconstructed block cipher and game data. + fn constant_cipher() -> Cipher { + let key = Key { words: [0; 60], end: vec![0; 16 * 256] }; + Cipher { + initial: vec![0; 16 * 256], + middle: vec![0; 16 * 256], + keys: BTreeMap::from([(7, key)]), + header_iv: [0x12; 16], + ctr_initial: vec![0; 16 * 256], + ctr_middle: vec![0; 16 * 256], + ctr_keys: BTreeMap::new(), + } + } + + #[test] + fn cbc_uses_previous_ciphertext_and_carries_the_chain_between_spans() { + let cipher = constant_cipher(); + let mut first = [0x34; 32]; + first[16..].fill(0x56); + let mut chain = cipher.header_iv(); + cipher.decrypt_cbc(7, &mut first, &mut chain).unwrap(); + assert_eq!(&first[..16], &[0x12; 16]); + assert_eq!(&first[16..], &[0x34; 16]); + assert_eq!(chain, [0x56; 16]); + let mut second = [0x78; 16]; + cipher.decrypt_cbc(7, &mut second, &mut chain).unwrap(); + assert_eq!(second, [0x56; 16]); + assert_eq!(chain, [0x78; 16]); + } + + #[test] + fn cbc_rejects_unknown_keys_and_partial_blocks_before_mutating() { + let cipher = constant_cipher(); + let mut chain = [0x12; 16]; + let mut bytes = [0x34; 17]; + assert!(cipher.decrypt_cbc(7, &mut bytes, &mut chain).is_none()); + assert_eq!(bytes, [0x34; 17]); + assert!(cipher.decrypt_cbc(8, &mut bytes[..16], &mut chain).is_none()); + assert_eq!(bytes, [0x34; 17]); + assert_eq!(chain, [0x12; 16]); + assert!(Cipher::from_exe(b"an unknown executable build").is_none()); + } + + fn counter_cipher() -> Cipher { + let mut cipher = constant_cipher(); + cipher.ctr_initial = (0..16 * 256).map(|i| i as u8).collect(); + cipher.ctr_middle = + (0..16 * 256).map(|i| ((i % 256) as u32).wrapping_mul(0x9e3779b9).rotate_left((i / 256) as u32)).collect(); + cipher.ctr_keys.insert( + 9, + Key { + words: std::array::from_fn(|i| (i as u32).wrapping_mul(0x6a09e667)), + end: (0..16 * 256).map(|i| i as u8).collect(), + }, + ); + cipher + } + + #[test] + fn ctr_increments_the_counter_big_endian_and_wraps() { + let cipher = counter_cipher(); + let mut iv = [0u8; 16]; + iv[15] = 255; + let mut next = [0u8; 16]; + next[14] = 1; + let mut bytes = [0u8; 32]; + cipher.crypt_ctr(9, &mut bytes, &iv, 0).unwrap(); + assert_eq!(&bytes[..16], &cipher.counter_block(9, &iv).unwrap()); + assert_eq!(&bytes[16..], &cipher.counter_block(9, &next).unwrap()); + let mut wrap = [0u8; 32]; + cipher.crypt_ctr(9, &mut wrap, &[255; 16], 0).unwrap(); + assert_eq!(&wrap[16..], &cipher.counter_block(9, &[0; 16]).unwrap()); + } + + #[test] + fn ctr_reads_at_unaligned_offsets_match_whole_member_reads() { + let cipher = counter_cipher(); + let iv = [0x12; 16]; + let plain: Vec = (0..97).collect(); + let mut whole = plain.clone(); + cipher.crypt_ctr(9, &mut whole, &iv, 0).unwrap(); + assert_ne!(&whole[..16], &whole[16..32]); + for (start, end) in [(0, 3), (3, 21), (21, 32), (32, 81), (81, 97)] { + let mut part = plain[start..end].to_vec(); + cipher.crypt_ctr(9, &mut part, &iv, start as u64).unwrap(); + assert_eq!(part, whole[start..end]); + } + cipher.crypt_ctr(9, &mut whole, &iv, 0).unwrap(); + assert_eq!(whole, plain); + assert!(cipher.crypt_ctr(10, &mut whole, &iv, 0).is_none()); + assert_eq!(whole, plain); + } +} diff --git a/crates/rage-rpf/src/rpf9_index.rs b/crates/rage-rpf/src/rpf9_index.rs new file mode 100644 index 0000000..5ecaead --- /dev/null +++ b/crates/rage-rpf/src/rpf9_index.rs @@ -0,0 +1,415 @@ +//! Validated native RPF9 tables after header transforms have been removed. +//! +//! Layout reconstructed from the Scarlett loader and table getters documented +//! in `docs/rpf9-scarlett.md`. Cipher material is supplied separately by the +//! local executable; this parser contains no game data. + +use std::collections::HashSet; + +pub const RESOURCE: u64 = 0xba18_0afb_232d_1b4b; +pub const CHUNKED: u64 = 0x33f7_0dfa_f2c5_0989; +pub const RAW: u64 = 0x4eaa_16dd_8299_95bc; +pub const HASH32: u64 = 0xb707_6b62_45d3_5fb5; +pub const HASH64: u64 = 0x73bc_b72d_ce74_f11f; +pub const CHUNKS: u64 = 0xe0c1_2d7a_5d48_84c5; +pub const ENCRYPTION: u64 = 0x2860_30a3_58a7_89fb; +const MASK40: u64 = (1 << 40) - 1; +const MASK44: u64 = (1 << 44) - 1; +const MASK48: u64 = (1 << 48) - 1; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Storage { + Raw, + Chunked, + Resource { system_flags: u32, graphics_flags: u32 }, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct NativeEntry { + pub slot: usize, + pub offset: u64, + pub stored: u64, + pub size: u64, + pub type_id: u8, + pub layout: u8, + pub name_hash32: Option, + pub name_hash64: Option, + pub storage: Storage, + records: Vec>, +} + +/// One chunk of a member's data. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct Chunk { + /// From the start of the member's data, after a resource's prefix. + pub offset: u64, + /// Stored bytes, without padding. + pub stored: u64, + /// Decoded bytes. + pub size: u64, + /// A zlib stream; otherwise the bytes as they are. + pub zlib: bool, +} + +#[derive(Debug, Clone)] +pub struct Table { + pub type_hash: u64, + pub count: usize, + pub stride: usize, + /// Absolute offset inside the decoded header, not inside archive payload. + pub start: usize, +} + +#[derive(Debug)] +pub struct Catalog { + pub entries: Vec, + pub tables: Vec
, + pub header: Vec, + pub split: usize, +} + +fn u16_at(b: &[u8], at: usize) -> u16 { + u16::from_le_bytes(b[at..at + 2].try_into().expect("validated field")) +} +fn u32_at(b: &[u8], at: usize) -> u32 { + u32::from_le_bytes(b[at..at + 4].try_into().expect("validated field")) +} +fn u64_at(b: &[u8], at: usize) -> u64 { + u64::from_le_bytes(b[at..at + 8].try_into().expect("validated field")) +} +fn aligned(value: usize, alignment: usize) -> Result { + if !alignment.is_power_of_two() { + return Err("invalid native table alignment".into()); + } + value.checked_add(alignment - 1).map(|n| n & !(alignment - 1)).ok_or_else(|| "native table overflow".into()) +} +fn sum(a: usize, b: usize) -> Result { + a.checked_add(b).ok_or_else(|| "native table overflow".into()) +} +fn product(a: usize, b: usize) -> Result { + a.checked_mul(b).ok_or_else(|| "native table overflow".into()) +} + +impl Catalog { + /// Parses already-decoded header bytes and checks all tables, entry + /// indices and payload ranges before exposing any native entries. + pub fn parse(header: Vec, archive_size: u64) -> Result { + if header.len() < 64 || u32_at(&header, 0) != 0x5250_4639 { + return Err("not a native RPF9 header".into()); + } + let extent = u32_at(&header, 4) as usize; + let split = u32_at(&header, 8) as usize; + if extent != header.len() || extent as u64 > archive_size || header.len() > 64 << 20 { + return Err("native header extent is invalid or too large".into()); + } + let directories = usize::from(u16_at(&header, 0x1a)); + let blob_size = u32_at(&header, 0x1c) as usize; + let table_count = usize::from(u16_at(&header, 0x20)); + let secondary = usize::from(u16_at(&header, 0x22)); + let count = u32_at(&header, 0x24) as usize; + let width = usize::from(header[0x2c]); + let wide_align = header[0x2d] & 1 != 0; + if !matches!(width, 1 | 2 | 4) || secondary > table_count || count > 1_000_000 { + return Err("unsupported native table dimensions".into()); + } + if table_count == 0 && count != 0 { + return Err("native entries have no tables".into()); + } + let primary = table_count - secondary; + let directory = aligned(64, if wide_align { 16 } else { 4 })?; + let blob = aligned(sum(directory, product(directories, 8)?)?, if wide_align { 16 } else { 8 })?; + let descriptors = aligned(sum(blob, blob_size)?, if wide_align { 16 } else { 8 })?; + let indices = aligned(sum(descriptors, product(table_count, 24)?)?, width)?; + let data = aligned(sum(indices, product(product(primary, count)?, width)?)?, 8)?; + let secondary_indices = aligned(split, width)?; + let secondary_data = aligned(sum(secondary_indices, product(product(secondary, count)?, width)?)?, 8)?; + if data > split || secondary_data > extent { + return Err("native table arrays lie outside the header".into()); + } + let mut tables = Vec::with_capacity(table_count); + let mut types = HashSet::new(); + for column in 0..table_count { + let at = descriptors + column * 24; + let type_hash = u64_at(&header, at); + let records = u32_at(&header, at + 8) as usize; + let offset = u32_at(&header, at + 12) as usize; + let stride = usize::from(u16_at(&header, at + 16)); + let (base, limit) = if column < primary { (data, split) } else { (secondary_data, extent) }; + let start = sum(base, offset)?; + if start > limit || sum(start, product(records, stride)?)? > limit || records > 0 && stride == 0 { + return Err(format!("native table {column} lies outside its header section")); + } + if !types.insert(type_hash) { + return Err("duplicate native table type".into()); + } + tables.push(Table { type_hash, count: records, stride, start }); + } + let mut entries = Vec::with_capacity(count); + for slot in 0..count { + let mut selected = Vec::with_capacity(table_count); + for (column, table) in tables.iter().enumerate() { + let (matrix, columns, local) = if column < primary { + (indices, primary, column) + } else { + (secondary_indices, secondary, column - primary) + }; + let at = matrix + (slot * columns + local) * width; + let index = match width { + 1 => u32::from(header[at]), + 2 => u32::from(u16_at(&header, at)), + _ => u32_at(&header, at), + }; + let missing = match width { + 1 => 0xff, + 2 => 0xffff, + _ => u32::MAX, + }; + if index == missing { + selected.push(None); + } else if (index as usize) < table.count { + selected.push(Some(table.start + index as usize * table.stride)); + } else { + return Err(format!("slot {slot} has an invalid native table index")); + } + } + let record = |kind: u64, min: usize| -> Result, String> { + let Some(column) = tables.iter().position(|t| t.type_hash == kind) else { return Ok(None) }; + let Some(at) = selected[column] else { return Ok(None) }; + let stride = tables[column].stride; + if stride < min { + return Err(format!("native record {kind:016x} is too short")); + } + Ok(Some(&header[at..at + stride])) + }; + let resource = record(RESOURCE, 18)?; + let chunked = record(CHUNKED, 24)?; + let raw = record(RAW, 16)?; + if [resource.is_some(), chunked.is_some(), raw.is_some()].into_iter().filter(|v| *v).count() != 1 { + return Err(format!("slot {slot} has missing or conflicting payload records")); + } + let (offset, stored, size, type_id, layout, storage) = if let Some(r) = resource { + let system_flags = u32_at(r, 0); + let graphics_flags = u32_at(r, 4); + ( + u64::from(u32_at(r, 12)) << 4, + u64::from(u32_at(r, 8)) << 4, + u64::from(system_flags & 0x7fff_fff0) + u64::from(graphics_flags & 0xffff_fff0), + r[16], + r[17], + Storage::Resource { system_flags, graphics_flags }, + ) + } else if let Some(r) = chunked { + ( + (u64_at(r, 0) & MASK40) << 4, + (u64_at(r, 8) & MASK40) << 4, + u64_at(r, 16) & MASK44, + r[5], + r[6], + Storage::Chunked, + ) + } else { + let r = raw.expect("one checked payload record"); + ( + u64::from(u32_at(r, 4)) << 4, + u64::from(u32_at(r, 0)) << 4, + u64_at(r, 8) & MASK48, + r[14], + r[15], + Storage::Raw, + ) + }; + if offset.checked_add(stored).is_none_or(|end| end > archive_size) + || stored > 0 && offset < extent as u64 + || stored == 0 && size != 0 + { + return Err(format!("slot {slot} payload lies outside the archive")); + } + let name_hash32 = record(HASH32, 4)?.map(|r| u32_at(r, 0)); + let name_hash64 = record(HASH64, 8)?.map(|r| u64_at(r, 0)); + entries.push(NativeEntry { + slot, + offset, + stored, + size, + type_id, + layout, + name_hash32, + name_hash64, + storage, + records: selected, + }); + } + Ok(Self { entries, tables, header, split }) + } + + /// The chunks a member is stored in, or `None` if it is stored whole. A + /// chunk record holds where its list starts, counted from the record + /// itself, the number of chunks, the size of a list item and its format. + pub fn chunks(&self, slot: usize) -> Result>, String> { + let Some(column) = self.tables.iter().position(|t| t.type_hash == CHUNKS) else { return Ok(None) }; + let at = self.entries.get(slot).and_then(|e| e.records.get(column).copied().flatten()); + let Some(at) = at else { return Ok(None) }; + if self.tables[column].stride != 8 || self.header[at + 6] != 8 { + return Err("unsupported chunk record".into()); + } + let list = sum(at, u32_at(&self.header, at) as usize)?; + let count = usize::from(u16_at(&self.header, at + 4)); + let items = self.header.get(list..sum(list, count * 8)?).ok_or("chunk list lies outside the header")?; + let mut chunks = Vec::with_capacity(count); + // Formats 2 and 4 have no offsets: chunks follow each other, padded. + let mut next = 0u64; + for item in items.as_chunks::<8>().0 { + let value = u64::from_le_bytes(*item); + let (low, high) = (value as u32, (value >> 32) as u32); + let wrapped = |v: u32| 0x10000 - u64::from(v & 0xffff); + let (offset, stored, size, codec) = match self.header[at + 7] { + 2 => { + let padded = u64::from(high & 0x03ff_ffff) << 4; + (next, padded.checked_sub(u64::from(high >> 26 & 15)), u64::from(low) << 4, high >> 30) + } + 3 => (u64::from(high & 0x0fff_ffff) << 4, Some(wrapped(low >> 16)), wrapped(low), high >> 28), + 4 => { + let padded = value >> 24 & 0xff_ffff; + (next, padded.checked_sub(u64::from(high >> 20 & 15)), value & 0xff_ffff, high >> 24) + } + format => return Err(format!("chunk format {format} is not supported")), + }; + let stored = stored.ok_or("a chunk is shorter than its padding")?; + if !matches!(codec, 0 | 3) { + return Err(format!("chunk codec {codec} is not supported")); + } + next = (offset + stored).next_multiple_of(16); + chunks.push(Chunk { offset, stored, size, zlib: codec == 3 }); + } + Ok(Some(chunks)) + } + + /// A selected row's native table record, including optional tables whose + /// interpretation is handled by the payload decoder. + pub fn record(&self, slot: usize, table_type: u64) -> Option<&[u8]> { + let column = self.tables.iter().position(|t| t.type_hash == table_type)?; + let at = *self.entries.get(slot)?.records.get(column)?.as_ref()?; + self.header.get(at..at + self.tables[column].stride) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn fixture() -> Vec { + let mut b = vec![0u8; 224]; + let put32 = |b: &mut [u8], at, v: u32| b[at..at + 4].copy_from_slice(&v.to_le_bytes()); + put32(&mut b, 0, 0x5250_4639); + put32(&mut b, 4, 224); + put32(&mut b, 8, 192); + b[0x20..0x22].copy_from_slice(&3u16.to_le_bytes()); + b[0x22..0x24].copy_from_slice(&1u16.to_le_bytes()); + put32(&mut b, 0x24, 2); + b[0x2c] = 1; + b[0x2d] = 1; + for (column, kind, offset, stride) in [(0, RAW, 0u32, 16u16), (1, HASH32, 32, 4), (2, HASH64, 0, 8)] { + let at = 64 + column * 24; + b[at..at + 8].copy_from_slice(&kind.to_le_bytes()); + put32(&mut b, at + 8, 2); + put32(&mut b, at + 12, offset); + b[at + 16..at + 18].copy_from_slice(&stride.to_le_bytes()); + } + b[136..140].copy_from_slice(&[0, 0, 1, 1]); + b[192..194].copy_from_slice(&[0, 1]); + for slot in 0..2 { + let at = 144 + slot * 16; + put32(&mut b, at, 1); + put32(&mut b, at + 4, 16 + slot as u32 * 2); + put32(&mut b, at + 8, 5); + b[at + 14] = 0xff; + put32(&mut b, 176 + slot * 4, 0x1234 + slot as u32); + b[200 + slot * 8..208 + slot * 8].copy_from_slice(&(0xabcd + slot as u64).to_le_bytes()); + } + b + } + + #[test] + fn resolves_split_index_matrices_and_payload_records() { + let catalog = Catalog::parse(fixture(), 320).unwrap(); + assert_eq!(catalog.entries.len(), 2); + let e = &catalog.entries[1]; + assert_eq!((e.slot, e.offset, e.stored, e.size), (1, 288, 16, 5)); + assert_eq!((e.name_hash32, e.name_hash64), (Some(0x1235), Some(0xabce))); + assert_eq!(e.storage, Storage::Raw); + assert_eq!(catalog.record(1, RAW).unwrap().len(), 16); + assert!(catalog.record(2, RAW).is_none()); + assert!(catalog.record(0, RESOURCE).is_none()); + } + + #[test] + fn accepts_absent_optional_records_but_rejects_bad_indices_and_ranges() { + let mut b = fixture(); + b[139] = 0xff; + assert_eq!(Catalog::parse(b.clone(), 320).unwrap().entries[1].name_hash32, None); + b[138] = 2; + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[148..152].copy_from_slice(&u32::MAX.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[64 + 8..64 + 12].copy_from_slice(&u32::MAX.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + assert!(Catalog::parse(fixture()[..223].to_vec(), 320).is_err()); + assert!(Catalog::parse(fixture(), 200).is_err()); + } + + #[test] + fn reads_the_three_chunk_formats() { + let chunks = |format: u8, items: &[[u8; 8]]| { + // The second table (hashes, 8-byte records here) becomes chunks; + // the list follows the header's other data. + let mut b = fixture(); + b[112..120].copy_from_slice(&CHUNKS.to_le_bytes()); + let record = 200; + let list = b.len(); + b[record..record + 4].copy_from_slice(&((list - record) as u32).to_le_bytes()); + b[record + 4..record + 8].copy_from_slice(&[items.len() as u8, 0, 8, format]); + items.iter().for_each(|item| b.extend_from_slice(item)); + let len = b.len() as u32; + b[4..8].copy_from_slice(&len.to_le_bytes()); + for slot in 0..2 { + b[148 + slot * 16..152 + slot * 16].copy_from_slice(&32u32.to_le_bytes()); + } + Catalog::parse(b, 1024).unwrap().chunks(0) + }; + let chunk = |offset, stored, size, zlib| Chunk { offset, stored, size, zlib }; + // 2: sizes in units of 16, padding in the last one. + let items = [[0, 0x40, 1, 0, 0xfd, 0x50, 0, 0xd4], [2, 0, 0, 0, 2, 0, 0, 0]]; + let expected = vec![chunk(0, 0x50fd0 - 5, 0x14_0000, true), chunk(0x50fd0, 32, 32, false)]; + assert_eq!(chunks(2, &items), Ok(Some(expected))); + // 3: sizes counted down from 64 KiB, with the chunk's offset. + let items = [[0, 0, 0x41, 0xb8, 0, 0, 0, 0x30], [0xf1, 0xff, 0xf1, 0xff, 0x7c, 4, 0, 0]]; + let expected = vec![chunk(0, 0x47bf, 0x10000, true), chunk(0x47c0, 15, 15, false)]; + assert_eq!(chunks(3, &items), Ok(Some(expected))); + // 4: 24-bit sizes, padding, codec. + let items = [[0, 0, 0x13, 0x70, 0xaa, 4, 0x70, 3], [0x0f, 0, 0, 0x10, 0, 0, 0x10, 0]]; + let expected = vec![chunk(0, 0x4aa70 - 7, 0x13_0000, true), chunk(0x4aa70, 15, 15, false)]; + assert_eq!(chunks(4, &items), Ok(Some(expected))); + assert!(chunks(5, &items).is_err()); + assert!(chunks(4, &[[0, 0, 0, 0, 0, 0, 0, 9]]).is_err()); + // Less stored than padding. + assert!(chunks(4, &[[1, 0, 0, 0, 0, 0, 0x10, 0]]).is_err()); + } + + #[test] + fn rejects_bad_dimensions_and_missing_storage() { + let mut b = fixture(); + b[0x2c] = 0; + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[0x22..0x24].copy_from_slice(&4u16.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[136] = 0xff; + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[64..72].copy_from_slice(&HASH32.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + } +} diff --git a/crates/rage-rpf/src/rpf9_names.rs b/crates/rage-rpf/src/rpf9_names.rs new file mode 100644 index 0000000..0c974a4 --- /dev/null +++ b/crates/rage-rpf/src/rpf9_names.rs @@ -0,0 +1,478 @@ +//! Name-hash primitives observed in the Scarlett executable. +//! +//! These identify *candidate* paths; hashes do not recover the original text. +//! The 32-bit leaf is normalized Jenkins one-at-a-time. The 64-bit leaves +//! return the first half of MurmurHash3 x64-128, seed zero, with an unusual +//! final length XOR: only the low byte of the length is used. This matters +//! for strings longer than 255 bytes. These are format algorithms, not keys. +//! +//! Native routines treat inputs as C strings. A NUL ends each input; a leading +//! double quote makes the Jenkins leaf stop at the matching quote. The Murmur +//! leaf does not have that quote rule. See `docs/rpf9-name-hashes.md` for the +//! observation and isolated native comparison boundaries. + +use std::collections::HashMap; + +/// ASCII path normalization shared by the observed native hash leaves. +pub fn normalize_byte(byte: u8) -> u8 { + match byte { + b'A'..=b'Z' => byte + (b'a' - b'A'), + b'\\' => b'/', + _ => byte, + } +} + +fn c_string(bytes: &[u8]) -> &[u8] { + &bytes[..bytes.iter().position(|b| *b == 0).unwrap_or(bytes.len())] +} + +/// Native normalized Jenkins name hash, with the leading-quote C-string rule. +pub fn hash32(bytes: &[u8]) -> u32 { + let bytes = c_string(bytes); + let bytes = if let Some(quoted) = bytes.strip_prefix(b"\"") { + "ed[..quoted.iter().position(|b| *b == b'"').unwrap_or(quoted.len())] + } else { + bytes + }; + let mut hash = 0u32; + for byte in bytes { + hash = hash.wrapping_add(u32::from(normalize_byte(*byte))); + hash = hash.wrapping_add(hash << 10); + hash ^= hash >> 6; + } + hash = hash.wrapping_add(hash << 3); + hash ^= hash >> 11; + hash.wrapping_add(hash << 15) +} + +/// Normalized 64-bit native name-hash leaf (ASCII case and slash folding). +pub fn hash64(bytes: &[u8]) -> u64 { + murmur64(c_string(bytes), normalize_byte) +} + +/// Raw 64-bit native name-hash leaf, without case or slash folding. +pub fn hash64_raw(bytes: &[u8]) -> u64 { + murmur64(c_string(bytes), |byte| byte) +} + +fn murmur64(bytes: &[u8], normalize: impl Fn(u8) -> u8) -> u64 { + const C1: u64 = 0x87c3_7b91_1142_53d5; + const C2: u64 = 0x4cf5_ad43_2745_937f; + let mix1 = |value: u64| value.wrapping_mul(C1).rotate_left(31).wrapping_mul(C2); + let mix2 = |value: u64| value.wrapping_mul(C2).rotate_left(33).wrapping_mul(C1); + let word = |slice: &[u8]| { + slice.iter().enumerate().fold(0u64, |value, (i, byte)| value | (u64::from(normalize(*byte)) << (i * 8))) + }; + let (mut h1, mut h2) = (0u64, 0u64); + let (blocks, tail) = bytes.as_chunks::<16>(); + for chunk in blocks { + h1 ^= mix1(word(&chunk[..8])); + h1 = h1.rotate_left(27).wrapping_add(h2).wrapping_mul(5).wrapping_add(0x52dc_e729); + h2 ^= mix2(word(&chunk[8..])); + h2 = h2.rotate_left(31).wrapping_add(h1).wrapping_mul(5).wrapping_add(0x3849_5ab5); + } + if tail.len() > 8 { + h2 ^= mix2(word(&tail[8..])); + } + if !tail.is_empty() { + h1 ^= mix1(word(&tail[..tail.len().min(8)])); + } + // The observed native leaves explicitly zero-extend AL, not EAX. + let length = u64::from(bytes.len() as u8); + h1 ^= length; + h2 ^= length; + h1 = h1.wrapping_add(h2); + h2 = h2.wrapping_add(h1); + fmix(h1).wrapping_add(fmix(h2)) +} + +fn fmix(mut value: u64) -> u64 { + value ^= value >> 33; + value = value.wrapping_mul(0xff51_afd7_ed55_8ccd); + value ^= value >> 33; + value = value.wrapping_mul(0xc4ce_b9fe_1a85_ec53); + value ^ (value >> 33) +} + +/// The extensions of the built-in types, by number, after their family +/// prefix: `z`, `i` and `#` are aliases for each. 0 is `rpf`, without one. +const BUILT_IN: [&str; 19] = [ + "rpf", "mf", "dr", "ft", "dd", "td", "bn", "bd", "pd", "bs", "sd", "mt", "sc", "cs", "datb", "bdr", "bdd", "bft", + "vert", +]; +/// The number of the first type the game registers. +const REGISTERED_FROM: u8 = 64; +/// The extensions of the registered types, in the order of the executable's +/// table (pointers at VA 0x14618dd20 for the `#` family). Those that start +/// with `.` here have no family prefix. +const REGISTERED: [&str; 52] = [ + ".mrf", ".cut", ".gfx", "cd", "ld", "pmd", "pm", "ed", "pt", "map", "typ", "ch", "ldb", "jd", "ad", "nv", "nvs", + "pl", "nd", "vr", "wr", "nh", "fd", "as", "sm", "script", "ascript", "sma", ".iasf", "fc", "lfc", "cg", "asd", + ".rdb", "fbs", "cps", "sp", "tsl", "mmd", "fid", "msk", "hdat", "nmd", "smm", "ascd", "rd", "smam", "ldbmt", "nmd", + "kit", "cgc", "cov", +]; + +/// The type of a lower-case extension without `.`; `None` for extensions that +/// stay in a file's name. The `y` family of GTA V is not an alias. Of the two +/// types with the extension `nmd` this is the first. +pub fn extension_type(extension: &str) -> Option { + if extension == "rpf" { + return Some(0); + } + let rest = extension.strip_prefix(['z', 'i', '#']); + let built_in = || BUILT_IN.iter().skip(1).position(|e| Some(*e) == rest).map(|i| i as u8 + 1); + let registered = || { + let found = REGISTERED.iter().position(|e| match e.strip_prefix('.') { + Some(whole) => whole == extension, + None => Some(*e) == rest, + }); + found.map(|i| i as u8 + REGISTERED_FROM) + }; + built_in().or_else(registered) +} + +/// The extension of a type, of the `#` family; the inverse of +/// [`extension_type`]. `None` for an unknown type. Used to name entries. +pub fn extension_for_type(type_id: u8) -> Option { + let extension = match type_id.checked_sub(REGISTERED_FROM) { + Some(index) => REGISTERED.get(usize::from(index))?, + None => BUILT_IN.get(usize::from(type_id))?, + }; + Some(match extension.strip_prefix('.') { + Some(whole) => whole.to_owned(), + None if type_id == 0 => (*extension).to_owned(), + None => format!("#{extension}"), + }) +} + +/// The extension an entry of this type is shown with when its own is not +/// known: the canonical one, or `type` for an unknown type. +pub fn type_extension(type_id: u8) -> String { + match extension_for_type(type_id) { + Some(ext) => ext, + None if type_id == u8::MAX => "bin".to_owned(), + None => format!("type{type_id}"), + } +} + +/// Texts that may be paths, found by the hashes of the names they could be. +#[derive(Debug, Default)] +pub struct Dictionary { + texts: Vec>, + /// Hash to the text and the part of it that has the hash. + by_hash: HashMap, +} + +impl Dictionary { + /// Adds a path, `mount:/path` or plain name. The mount is dropped, and + /// what follows each slash is a name as well: files name others from + /// different folders up. Names count with and without their extension, + /// as the index leaves out those it has a type for. + pub fn add(&mut self, text: &str) { + if text.len() > 1024 { + return; + } + let Ok(number) = u32::try_from(self.texts.len()) else { return }; + let from = text.find(":/").map_or(0, |at| at + 2); + let starts = std::iter::once(from).chain(text[from..].match_indices('/').map(|(at, _)| from + at + 1)); + let mut used = false; + for start in starts { + let name = &text[start..]; + let stem = name.rsplit_once('.').filter(|(_, ext)| !ext.contains('/')).map(|(stem, _)| stem); + for part in std::iter::once(name).chain(stem).filter(|part| is_relative(part)) { + self.by_hash.entry(hash64(part.as_bytes())).or_insert_with(|| { + used = true; + (number, start as u16, (start + part.len()) as u16) + }); + } + } + if used { + self.texts.push(text.into()); + } + } + + pub fn len(&self) -> usize { + self.by_hash.len() + } + + pub fn is_empty(&self) -> bool { + self.by_hash.is_empty() + } + + /// The path of an entry with these hashes and this type. + pub fn find(&self, hash64: u64, hash32: Option, type_id: u8) -> Option { + let &(number, start, end) = self.by_hash.get(&hash64)?; + let name = &self.texts[number as usize][usize::from(start)..usize::from(end)]; + if hash32.is_some_and(|expected| expected != self::hash32(name.as_bytes())) { + return None; + } + Some(with_type(name, type_id)) + } +} + +/// The path of an entry with this name and type. +pub fn with_type(name: &str, type_id: u8) -> String { + // Texts differ in how they write folders; hashes ignore case. + let folder = name.rfind('/').map_or(0, |at| at + 1); + let name = name[..folder].to_ascii_lowercase() + &name[folder..]; + if type_id == u8::MAX { name } else { format!("{name}.{}", type_extension(type_id)) } +} + +fn is_relative(path: &str) -> bool { + path.len() >= 2 + && !path.contains([':', '%']) + && path.split('/').all(|part| !part.is_empty() && part != "." && part != "..") +} + +/// What follows a name in the name of a file that belongs to it. +const VARIANTS: [&str; 10] = ["", "_hi", "+hi", "_lod", "_b", "_c", "_decals", "_cloth", "_occl", "_metadata"]; + +/// Calls `try_name` with the names that files near the one called `name` +/// may have: its variants, and those of what it starts with. +pub fn related(name: &str, try_name: &mut dyn FnMut(&str)) { + let mut stem = name; + loop { + for variant in VARIANTS { + try_name(&format!("{stem}{variant}")); + } + let Some((shorter, _)) = stem.rsplit_once('_') else { break }; + stem = shorter; + } +} + +/// Calls `try_name` with the numbered names files of a type may have, in a +/// part of them: `part` is below [`GRID_PARTS`]. Navigation meshes and cover +/// are named by their cell of the world, collisions of the terrain by its +/// cell (`s09_w04_55`), height data by its tile. +pub fn numbered(type_id: u8, part: u32, try_name: &mut dyn FnMut(&str)) { + match type_id { + 79 | 100 | 115 => { + let name = if type_id == 115 { "coverregion" } else { "navmesh" }; + (0..GRID_PARTS).for_each(|y| try_name(&format!("{name}[{part}][{y}]"))); + } + 104 | 105 if part < 100 => { + let name = if type_id == 104 { "moverdeepsurfacetype" } else { "minmaxheight" }; + (0..100).for_each(|y| try_name(&format!("{name}/tile_{part}_{y}"))); + } + 6 if part < 80 => { + let row = format!("{}{:02}", if part < 40 { 'n' } else { 's' }, part % 40); + for column in 0..80 { + let cell = format!("{row}_{}{:02}", if column < 40 { 'e' } else { 'w' }, column % 40); + (0..300).for_each(|i| try_name(&format!("{cell}_{i}"))); + } + } + _ => {} + } +} + +/// Number of parts of [`numbered`]: more than the world has cells one way. +pub const GRID_PARTS: u32 = 512; + +/// The texts in a file's data that may be paths or names of files. +pub fn tokens(data: &[u8]) -> Vec { + let belongs = |b: &u8| b.is_ascii_alphanumeric() || b"_/\\.-#@+$:".contains(b); + let mut found: Vec = data + .split(|b| !belongs(b)) + .filter(|t| (3..=255).contains(&t.len()) && t.iter().any(u8::is_ascii_alphabetic)) + .map(|t| String::from_utf8_lossy(t).replace('\\', "/")) + .collect(); + found.sort_unstable(); + found.dedup(); + found +} + +/// Candidate path hashes and the recognized static extension type, if any. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub struct PathHashes { + pub hash32: u32, + pub hash64: u64, + pub file_type: Option, +} + +/// Hashes a relative path candidate. Recognized extensions are represented by +/// their type and omitted from the hash; unrecognized extensions stay in it. +/// +/// The extension is ASCII-lowercased for candidate matching. This is a helper +/// convention: the observed native extension dispatcher itself uses `strcmp`. +/// No mount prefix is removed by this helper. +pub fn path_hashes(path: &str) -> PathHashes { + let (stem, file_type) = path.rsplit_once('.').map_or((path, None), |(stem, extension)| { + let file_type = extension_type(&extension.to_ascii_lowercase()); + (if file_type.is_some() { stem } else { path }, file_type) + }); + PathHashes { hash32: hash32(stem.as_bytes()), hash64: hash64(stem.as_bytes()), file_type } +} + +/// Collects bounded NUL-terminated ASCII path candidates from an executable. +/// A candidate contains a slash or a static resource/media extension. Literal +/// `mount:/relative/path` strings contribute `relative/path`, matching native +/// mount-prefix removal. No directory or extension guesses are synthesized. +/// Candidates need catalog hash/type checks before being used as names. +pub fn candidates(exe: &[u8]) -> Vec { + let mut found = std::collections::BTreeSet::new(); + let mut start = None; + for (at, byte) in exe.iter().enumerate() { + if byte.is_ascii_graphic() || *byte == b' ' { + start.get_or_insert(at); + } else { + if *byte == 0 + && let Some(from) = start + && (3..=1024).contains(&(at - from)) + && let Ok(text) = std::str::from_utf8(&exe[from..at]) + && let Some(path) = candidate_path(text) + { + found.insert(path); + } + start = None; + } + } + found.into_iter().collect() +} + +/// Converts one literal executable path to a safe relative candidate. +/// Slash direction is normalized, case retained for display. Absolute paths, +/// traversal, format placeholders and invalid Windows filename characters are +/// rejected. This helper does not establish a catalog hash match. +pub fn candidate_path(text: &str) -> Option { + if !text.is_ascii() || text.trim() != text || !(3..=1024).contains(&text.len()) { + return None; + } + let slashes = text.replace('\\', "/"); + let path = if let Some((mount, path)) = slashes.split_once(":/") { + if mount.len() < 2 || !mount.bytes().all(|b| b.is_ascii_alphanumeric() || b == b'_') { + return None; + } + path + } else { + &slashes + }; + if path.is_empty() + || path.starts_with('/') + || path.bytes().any(|b| !b.is_ascii_graphic() && b != b' ' || b"<>\"|:*?%{}".contains(&b)) + || path.split('/').any(|part| part.is_empty() || part == "." || part == "..") + { + return None; + } + let supported_extension = path.rsplit_once('.').is_some_and(|(_, extension)| { + let extension = extension.to_ascii_lowercase(); + extension_type(&extension).is_some() || matches!(extension.as_str(), "bk2" | "awc") + }); + (path.contains('/') || supported_extension).then(|| path.to_owned()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn matches_isolated_native_leaf_results() { + // Synthetic strings, compared with the three native leaf routines. + for (input, short, normalized, raw) in [ + ("", 0, 0, 0), + ("a", 0xca2e_9442, 0x8555_5565_f659_7889, 0x8555_5565_f659_7889), + ("COMMON\\Data\\hello", 0x576c_1635, 0xccf5_dfed_5670_81fa, 0x70cd_be33_24e2_3190), + ("\"foo\"bar", 0x2386_78dd, 0x4538_4fc0_d320_a743, 0x4538_4fc0_d320_a743), + ] { + assert_eq!(hash32(input.as_bytes()), short); + assert_eq!(hash64(input.as_bytes()), normalized); + assert_eq!(hash64_raw(input.as_bytes()), raw); + } + assert_eq!(hash32(b"\"foo\"bar"), hash32(b"foo")); + assert_ne!(hash64(b"\"foo\"bar"), hash64(b"foo")); + assert_eq!(hash32(b"a\0ignored"), hash32(b"a")); + assert_eq!(hash64(b"a\0ignored"), hash64(b"a")); + } + + #[test] + fn matches_native_block_tail_and_length_byte_boundaries() { + for (length, short, normalized, raw) in [ + (15, 0x2f4d_b830, 0x7d07_a8db_fd2e_7fbc, 0x3c58_42c4_cf7d_1737), + (16, 0x1eac_851e, 0xf2c1_180d_62aa_a6ce, 0x37bd_7653_d0d1_9d9a), + (17, 0x9ad8_78a9, 0x6f72_14c7_cef2_d698, 0x8256_209c_f2de_16fd), + (255, 0x3193_730a, 0x6fd9_34f2_7dbd_cf29, 0x6d41_d82f_587f_0654), + (256, 0x5a7c_a609, 0x42bf_fdb3_5fe4_59a8, 0x0a2f_a29d_2b04_d60d), + (257, 0xc6e9_7364, 0xe8fb_e0e1_a76f_a966, 0x9669_0e26_7253_d702), + ] { + let input = vec![b'A'; length]; + assert_eq!(hash32(&input), short); + assert_eq!(hash64(&input), normalized); + assert_eq!(hash64_raw(&input), raw); + } + } + + #[test] + fn candidate_paths_keep_unknown_extensions_and_share_static_aliases() { + assert_eq!(extension_type("rpf"), Some(0)); + assert_eq!(extension_type("zdr"), Some(2)); + assert_eq!(extension_type("idr"), Some(2)); + assert_eq!(extension_type("#dr"), Some(2)); + assert_eq!(extension_type("ydr"), None); + assert_eq!((extension_type("vert"), extension_type("#vert"), extension_type("xml")), (None, Some(18), None)); + assert_eq!((extension_type("gfx"), extension_type("#gfx"), extension_type("zcd")), (Some(66), None, Some(67))); + assert_eq!((extension_type("#script"), extension_type("#cov")), (Some(89), Some(115))); + for id in (0..=18).chain(64..=115).filter(|id| *id != 112) { + assert_eq!(extension_type(&extension_for_type(id).unwrap()), Some(id)); + } + assert_eq!([19, 63, 116, 255].map(extension_for_type), [const { None }; 4]); + let recognized = path_hashes("Models\\Example.ZDR"); + assert_eq!( + recognized, + PathHashes { hash32: hash32(b"models/example"), hash64: hash64(b"models/example"), file_type: Some(2) } + ); + let unknown = path_hashes("data/example.xml"); + assert_eq!(unknown.file_type, None); + assert_eq!(unknown.hash32, hash32(b"data/example.xml")); + assert_eq!(unknown.hash64, hash64(b"data/example.xml")); + } + + #[test] + fn dictionary_finds_names_below_mounts_and_folders() { + let mut names = Dictionary::default(); + names.add("platform:/levels/Props/barrel.rpf"); + names.add("/movies/Intro.bk2"); + names.add("../secret/file.xml"); + let find = |name: &str, ty| names.find(hash64(name.as_bytes()), Some(hash32(name.as_bytes())), ty); + assert_eq!(find("levels/props/barrel", 0).as_deref(), Some("levels/props/barrel.rpf")); + assert_eq!(find("props/barrel", 2).as_deref(), Some("props/barrel.#dr")); + assert_eq!(find("barrel", 74).as_deref(), Some("barrel.#typ")); + assert_eq!(find("movies/intro.bk2", 255).as_deref(), Some("movies/Intro.bk2")); + assert_eq!(find("secret/file.xml", 255).as_deref(), Some("secret/file.xml")); + assert!(find("../secret/file.xml", 255).is_none()); + assert!(names.find(hash64(b"barrel"), Some(1), 0).is_none()); + assert_eq!(tokens(b"\x01ab\0data\\x.xml\xff123 name"), ["data/x.xml", "name"]); + } + + #[test] + fn generates_numbered_and_related_names() { + let has = |type_id, part, wanted: &str| { + let mut found = false; + numbered(type_id, part, &mut |name| found |= name == wanted); + found + }; + assert!(has(79, 204, "navmesh[204][293]") && has(115, 0, "coverregion[0][511]")); + assert!(has(104, 36, "moverdeepsurfacetype/tile_36_34") && has(105, 1, "minmaxheight/tile_1_41")); + assert!(has(6, 49, "s09_w04_55") && has(6, 1, "n01_e00_0") && !has(2, 1, "n01_e00_0")); + let mut names = Vec::new(); + related("sandking_4dr", &mut |name| names.push(name.to_owned())); + assert!(["sandking_4dr_hi", "sandking", "sandking+hi"].iter().all(|n| names.iter().any(|m| m == n))); + } + + #[test] + fn executable_candidates_are_literal_bounded_and_relative() { + let bytes = b"\xffcommon:/Data\\Example.zdr\0common:/Data/Example.zdr\0intro.bk2\0audio.awc\0pack.rpf\0plain.txt\0../bad/file.xml\0https://host/file.xml\0/absolute/file.xml\0%s/path.xml\0word with no path\0unterminated/path.xml"; + assert_eq!(candidates(bytes), ["Data/Example.zdr", "audio.awc", "intro.bk2", "pack.rpf"]); + assert_eq!(candidate_path("data/Example.xml").as_deref(), Some("data/Example.xml")); + for bad in [ + "..\\file.zdr", + "a//file.zdr", + " leading/file.zdr", + "data/file:stream.zdr", + "data/Γ©.zdr", + "C:\\Users\\file.zdr", + ] { + assert_eq!(candidate_path(bad), None); + } + let long = format!("data/{}.zdr\0", "x".repeat(1024)); + assert!(candidates(long.as_bytes()).is_empty()); + } +} diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs new file mode 100644 index 0000000..76871fb --- /dev/null +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -0,0 +1,528 @@ +//! Executable-backed native RPF9 indexes. The executable is parsed as data. + +use std::collections::{BTreeSet, HashMap}; +use std::fs::File; +use std::io::{BufReader, Read, Seek, SeekFrom, Write}; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex, OnceLock, RwLock}; + +use rayon::prelude::*; + +use crate::rpf9_cipher::Cipher; +use crate::rpf9_index::{Catalog, Chunk, ENCRYPTION, NativeEntry, Storage}; +use crate::rpf9_names; + +pub(crate) struct Materials { + pub cipher: Cipher, + names: rpf9_names::Dictionary, +} + +impl std::fmt::Debug for Materials { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Materials").field("names", &self.names.len()).finish_non_exhaustive() + } +} + +/// Names of files that were learned from other archives, by their hash. +static LEARNED: RwLock>>> = RwLock::new(None); + +/// Adds names files may have, without their extension. Archives opened from +/// now on use them. +pub fn add_names(names: impl IntoIterator) { + let mut learned = LEARNED.write().unwrap_or_else(|e| e.into_inner()); + let learned = learned.get_or_insert_default(); + learned.extend(names.into_iter().map(|name| (rpf9_names::hash64(name.as_bytes()), name.into_boxed_str()))); + OPENED.lock().unwrap_or_else(|e| e.into_inner()).clear(); +} + +type OpenedKey = (PathBuf, u64, u64, Option); +static OPENED: Mutex)>> = Mutex::new(Vec::new()); + +/// Reuses runtime tables, never a checked-in or on-disk key cache. +pub(crate) fn materials(path: &Path) -> Option> { + type Key = (PathBuf, u64, Option); + // `None`: not a supported build, which is not read again and again. + static CACHE: OnceLock>>>> = OnceLock::new(); + let executable = + path.ancestors().skip(1).take(5).map(|p| p.join("game_scarlett_master.exe")).find(|p| p.is_file())?; + let meta = std::fs::metadata(&executable).ok()?; + let key = (executable, meta.len(), meta.modified().ok()); + let mut cache = CACHE.get_or_init(Default::default).lock().ok()?; + if let Some(materials) = cache.get(&key) { + return materials.clone(); + } + let materials = load_materials(&key.0).map(Arc::new); + cache.insert(key, materials.clone()); + materials +} + +fn load_materials(executable: &Path) -> Option { + let bytes = std::fs::read(executable).ok()?; + let cipher = Cipher::from_exe(&bytes)?; + // Names: path strings of the executable and of the metadata in the two + // archives that list most of the game's files. + let mut names = rpf9_names::Dictionary::default(); + for candidate in rpf9_names::candidates(&bytes) { + names.add(&candidate); + } + drop(bytes); + let nameless = Arc::new(Materials { cipher, names: Default::default() }); + let mut strings = Vec::new(); + let read = || { + for archive in ["common.rpf", "data.rpf"].map(|name| executable.with_file_name(name)) { + strings.extend(NativeArchive::strings(&archive, &nameless).unwrap_or_default()); + } + }; + crate::in_own_threads(read); + strings.iter().for_each(|text| names.add(text)); + let cipher = Arc::into_inner(nameless)?.cipher; + Some(Materials { cipher, names }) +} + +#[derive(Debug)] +pub(crate) struct NativeArchive { + pub catalog: Catalog, + materials: Arc, + /// The entries' paths, by slot. + pub paths: Vec, + /// Lower-case path to slot. + by_path: HashMap, + /// Extensions of unnamed entries without a type, from their content. + sniffed: HashMap, +} + +fn u16_at(b: &[u8], at: usize) -> Option { + Some(u16::from_le_bytes(b.get(at..at.checked_add(2)?)?.try_into().ok()?) as usize) +} +fn u32_at(b: &[u8], at: usize) -> Option { + Some(u32::from_le_bytes(b.get(at..at.checked_add(4)?)?.try_into().ok()?) as usize) +} + +pub(crate) fn decode_header(cipher: &Cipher, h: &mut [u8]) -> Option<()> { + if h.len() < 64 || h.get(..4)? != b"9FPR" { + return None; + } + if h[0x2e] == 0 { + return Some(()); + } + // The supported Scarlett build uses selector 9: two metadata spans + // share one CBC chain, leaving the secondary transform prefix intact. + if h[0x2e] != 9 { + return None; + } + let count = u16_at(h, 0x1a)?; + let directory_len = count.checked_mul(8)?.checked_add(15)? & !15; + let blob = 64usize.checked_add(directory_len)?; + let metadata_end = blob.checked_add(u32_at(h, 0x1c)?)?; + let tail = u32_at(h, 0x30)?; + let prefix = metadata_end.checked_sub(tail)?; + let split = u32_at(h, 8)?; + if prefix < blob || split < metadata_end || split > h.len() { + return None; + } + let mut iv = cipher.header_iv(); + cipher.decrypt_cbc(0x10000001, h.get_mut(64..blob)?, &mut iv)?; + cipher.decrypt_cbc(0x10000001, h.get_mut(blob..prefix)?, &mut iv)?; + let descriptor = (0..count).find_map(|i| { + let at = 64 + i * 8; + (u16_at(h, at)? == 1).then(|| blob.checked_add(u32_at(h, at + 4)?)).flatten() + })?; + let key = u32_at(h, descriptor)? as u32; + if u16_at(h, descriptor + 4)? != 16 { + return None; + } + let initial: [u8; 16] = h.get(descriptor + 6..descriptor + 22)?.try_into().ok()?; + let mut iv = initial; + cipher.decrypt_cbc(key, h.get_mut(prefix..split)?, &mut iv)?; + let mut iv = initial; + cipher.decrypt_cbc(key, h.get_mut(split..)?, &mut iv)?; + Some(()) +} + +impl NativeArchive { + pub fn open(path: &Path, base: u64, extent: u64, materials: Arc) -> Result { + let mut file = File::open(path).map_err(|e| e.to_string())?; + file.seek(SeekFrom::Start(base)).map_err(|e| e.to_string())?; + let mut head = [0u8; 64]; + file.read_exact(&mut head).map_err(|e| e.to_string())?; + let len = u32_at(&head, 4).ok_or("short header")?; + if !(64..=64 << 20).contains(&len) || len as u64 > extent { + return Err("native header extent is outside the archive".into()); + } + let mut bytes = vec![0u8; len]; + bytes[..64].copy_from_slice(&head); + file.read_exact(&mut bytes[64..]).map_err(|e| e.to_string())?; + decode_header(&materials.cipher, &mut bytes).ok_or("unsupported or damaged native header transform")?; + let catalog = Catalog::parse(bytes, extent)?; + let mut archive = + Self { catalog, materials, paths: Vec::new(), by_path: HashMap::new(), sniffed: HashMap::new() }; + archive.name_entries(&HashMap::new()); + Ok(archive) + } + + /// The archive at `base` in a file, with the names its own files tell. + /// The last few opened ones are kept. + pub fn cached(path: &Path, base: u64, extent: u64) -> Option> { + let key = (path.to_path_buf(), base, extent, std::fs::metadata(path).and_then(|m| m.modified()).ok()); + if let Some((_, found)) = OPENED.lock().ok()?.iter().find(|(k, _)| *k == key) { + return Some(Arc::clone(found)); + } + let mut archive = Self::open(path, base, extent, materials(path)?).ok()?; + let learned = archive.learn_names(path, base); + archive.sniffed = archive.sniff(path, base); + archive.name_entries(&learned); + let mut guessed = archive.guess_names(); + if !guessed.is_empty() { + guessed.extend(learned); + archive.name_entries(&guessed); + } + let archive = Arc::new(archive); + let mut opened = OPENED.lock().ok()?; + if opened.len() >= KEPT { + opened.remove(0); + } + opened.push((key, Arc::clone(&archive))); + Some(archive) + } + + /// Gives the entries their paths: names by slot, then the known ones. + fn name_entries(&mut self, learned: &HashMap) { + let shared = LEARNED.read().unwrap_or_else(|e| e.into_inner()); + self.paths = Vec::with_capacity(self.catalog.entries.len()); + self.by_path = HashMap::with_capacity(self.catalog.entries.len()); + for entry in &self.catalog.entries { + let name = learned + .get(&entry.slot) + .cloned() + .or_else(|| { + let hash = entry.name_hash64?; + self.materials.names.find(hash, entry.name_hash32, entry.type_id) + }) + .or_else(|| { + // Archives keep the place they were found at. + let hash = entry.name_hash64.filter(|_| entry.type_id != 0)?; + Some(rpf9_names::with_type(shared.as_ref()?.get(&hash)?, entry.type_id)) + }) + .filter(|name| !self.by_path.contains_key(&name.to_ascii_lowercase())); + let path = name.unwrap_or_else(|| { + let sniffed = self.sniffed.get(&entry.slot).cloned(); + let ext = sniffed.unwrap_or_else(|| rpf9_names::type_extension(entry.type_id)); + format!("{UNNAMED}/{:06}_{:016x}.{ext}", entry.slot, entry.name_hash64.unwrap_or(0)) + }); + self.by_path.insert(path.to_ascii_lowercase(), entry.slot); + self.paths.push(path); + } + } + + fn unnamed(&self) -> impl Iterator { + self.catalog.entries.iter().filter(|e| self.is_unnamed(e)) + } + + /// Whether an entry is listed by its slot, as its name is not known. + pub fn is_unnamed(&self, entry: &NativeEntry) -> bool { + self.paths[entry.slot].strip_prefix(UNNAMED).is_some_and(|rest| rest.starts_with('/')) + } + + /// Names of unnamed entries that follow from a pattern or from the names + /// of others in the archive; checked against the hashes in the table. + fn guess_names(&self) -> HashMap { + let mut wanted: HashMap> = HashMap::new(); + let mut types = BTreeSet::new(); + for e in self.unnamed() { + if let Some(hash) = e.name_hash64 { + wanted.entry(hash).or_default().push(e); + types.insert(e.type_id); + } + } + let matching = |name: &str, found: &mut Vec<(usize, String)>| { + for e in wanted.get(&rpf9_names::hash64(name.as_bytes())).into_iter().flatten() { + if e.name_hash32.is_none_or(|hash| hash == rpf9_names::hash32(name.as_bytes())) { + found.push((e.slot, rpf9_names::with_type(name, e.type_id))); + } + } + }; + let mut found: Vec<(usize, String)> = types + .into_par_iter() + .flat_map(|type_id| (0..rpf9_names::GRID_PARTS).into_par_iter().map(move |part| (type_id, part))) + .flat_map_iter(|(type_id, part)| { + let mut found = Vec::new(); + rpf9_names::numbered(type_id, part, &mut |name| matching(name, &mut found)); + found + }) + .collect(); + if !wanted.is_empty() { + found.par_extend(self.paths.par_iter().flat_map_iter(|path| { + let mut found = Vec::new(); + let stem = path.rsplit_once('.').map_or(path.as_str(), |(stem, _)| stem); + rpf9_names::related(stem, &mut |name| matching(name, &mut found)); + found + })); + } + found.into_iter().collect() + } + + /// The extensions of unnamed entries without a type, by how they start. + fn sniff(&self, path: &Path, base: u64) -> HashMap { + /// Takes the first bytes, then ends the unpacking. + struct Head(Vec); + impl Write for Head { + fn write(&mut self, buf: &[u8]) -> std::io::Result { + if self.0.len() >= 16 { + return Err(std::io::ErrorKind::WriteZero.into()); + } + let n = buf.len().min(16 - self.0.len()); + self.0.extend_from_slice(&buf[..n]); + Ok(n) + } + fn flush(&mut self) -> std::io::Result<()> { + Ok(()) + } + } + let unnamed: Vec<&NativeEntry> = self.unnamed().filter(|e| e.type_id == u8::MAX).collect(); + unnamed + .into_par_iter() + .filter_map(|e| { + let mut head = Head(Vec::new()); + // Fails when the head is full, which is fine. + let _ = self.copy_to(path, base, e, &mut head); + Some((e.slot, crate::rpf9::extension_of(&head.0)?)) + }) + .collect() + } + + /// Names of unnamed entries, found in their own data: models, clip + /// dictionaries and some others hold their name. What is found is + /// checked against the hash in the table. + fn learn_names(&self, path: &Path, base: u64) -> HashMap { + let candidates: Vec<&NativeEntry> = + self.unnamed().filter(|e| SELF_NAMED.contains(&e.type_id) && e.size <= LEARN_MAX).collect(); + candidates + .into_par_iter() + .filter_map(|e| { + let wanted = e.name_hash64?; + let mut data = Vec::new(); + self.copy_to(path, base, e, &mut data).ok()?; + let mut names = rpf9_names::Dictionary::default(); + rpf9_names::tokens(&data).iter().for_each(|text| names.add(text)); + Some((e.slot, names.find(wanted, e.name_hash32, e.type_id)?)) + }) + .collect() + } + + /// The slot with this path (case-insensitive). + pub fn find(&self, path: &str) -> Option { + let path = path.to_ascii_lowercase(); + self.by_path.get(&path).copied().or_else(|| { + // Its name was learned since: the stand-in has the slot and the hash. + let (slot, rest) = path.strip_prefix(UNNAMED)?.strip_prefix('/')?.split_once('_')?; + let hash = u64::from_str_radix(rest.get(..16)?, 16).ok()?; + let slot: usize = slot.parse().ok()?; + self.catalog.entries.get(slot).filter(|e| e.slot == slot && e.name_hash64 == Some(hash)).map(|e| e.slot) + }) + } + + /// The path-like strings in an archive's own files. + fn strings(path: &Path, materials: &Arc) -> Result, String> { + let size = std::fs::metadata(path).map_err(|e| e.to_string())?.len(); + let archive = Self::open(path, 0, size, Arc::clone(materials))?; + let mut found: Vec = archive + .catalog + .entries + .par_iter() + .filter(|e| e.type_id != 0 && e.size <= STRINGS_MAX) + .flat_map_iter(|e| { + let mut data = Vec::new(); + let read = archive.copy_to(path, 0, e, &mut data); + if read.is_ok() { rpf9_names::tokens(&data) } else { Vec::new() } + }) + .collect(); + found.par_sort_unstable(); + found.dedup(); + Ok(found) + } + + /// Writes a member's decoded bytes to `out` and returns their number. A + /// resource comes out as its system part followed by its graphics part. + pub fn copy_to(&self, path: &Path, base: u64, entry: &NativeEntry, out: &mut dyn Write) -> Result { + let file = File::open(path).map_err(|e| e.to_string())?; + // A resource starts with a clear 16-byte prefix; the encryption + // pattern and the chunks count from its end. + let resource = matches!(entry.storage, Storage::Resource { .. }); + let prefix = if resource { RESOURCE_PREFIX } else { 0 }; + let start = base.checked_add(entry.offset).and_then(|v| v.checked_add(prefix)).ok_or("offset overflow")?; + let len = if entry.stored == 0 { + 0 + } else { + entry.stored.checked_sub(prefix).ok_or("a resource is shorter than its prefix")? + }; + let cipher = match self.catalog.record(entry.slot, ENCRYPTION) { + Some(record) => Some((&self.materials.cipher, Encryption::parse(record, len)?)), + None => None, + }; + let mut member = Member { file, start, len, at: 0, cipher }; + if let Some(chunks) = self.catalog.chunks(entry.slot)? { + return copy_chunks(&mut member, &chunks, entry.size, out); + } + let written = match entry.layout { + 0 if !resource && entry.size <= len => { + std::io::copy(&mut (&mut member).take(entry.size), out).map_err(|e| e.to_string())? + } + // One raw DEFLATE stream. + 1 if !resource => { + let mut inflate = flate2::bufread::DeflateDecoder::new(BufReader::with_capacity(1 << 16, member)); + // One byte more shows a stream longer than declared. + std::io::copy(&mut (&mut inflate).take(entry.size.saturating_add(1)), out).map_err(|e| e.to_string())? + } + layout => return Err(format!("storage layout {layout} is not supported")), + }; + if written == entry.size { Ok(written) } else { Err("decoded size differs from the index".into()) } + } +} + +/// Where entries without a known name are listed. +const UNNAMED: &str = "entries"; +/// Types whose files hold their own name: drawables, fragments, drawable +/// dictionaries, and registered ones where this was seen in the game's data. +const SELF_NAMED: [u8; 10] = [2, 3, 4, 66, 67, 69, 70, 72, 102, 109]; +/// Larger members are not searched for their own name. +const LEARN_MAX: u64 = 8 << 20; +/// Opened archives to keep. +const KEPT: usize = 192; +/// Larger members are not searched for names of others. +const STRINGS_MAX: u64 = 64 << 20; + +/// Clear bytes in front of a resource's chunks. +const RESOURCE_PREFIX: u64 = 16; + +/// Which bytes of a member are encrypted, and with what. Members are often +/// encrypted only in part: `head` bytes, then from there on `run` bytes of +/// every `run + gap`, and `tail` bytes at the end. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +struct Encryption { + key: u32, + iv: [u8; 16], + head: u64, + run: u64, + gap: u64, + tail_start: u64, +} + +impl Encryption { + fn parse(record: &[u8], len: u64) -> Result { + let word = |at: usize| u32_at(record, at).map(|v| v as u64).ok_or("short encryption record"); + if u16_at(record, 4) != Some(17) { + return Err("unsupported encryption algorithm".into()); + } + let iv = record.get(6..22).and_then(|iv| iv.try_into().ok()).ok_or("short encryption record")?; + let (head, run, gap, tail) = (word(24)?, word(32)?, word(40)?, word(48)?); + if [head, run, gap, tail].iter().any(|v| v % 16 != 0) { + return Err("unaligned encryption pattern".into()); + } + Ok(Self { key: word(0)? as u32, iv, head, run, gap, tail_start: len.saturating_sub(tail) }) + } + + /// Whether the byte at `at` is encrypted, and where that may change next. + fn span(&self, at: u64) -> (bool, u64) { + if at < self.head { + return (true, self.head); + } + if at >= self.tail_start { + return (true, u64::MAX); + } + let period = self.run + self.gap; + if period == 0 { + return (false, self.tail_start); + } + let within = (at - self.head) % period; + let (encrypted, left) = if within < self.run { (true, self.run - within) } else { (false, period - within) }; + (encrypted, at.saturating_add(left).min(self.tail_start)) + } +} + +/// A member's stored bytes, decrypted. +struct Member<'a> { + file: File, + start: u64, + len: u64, + at: u64, + cipher: Option<(&'a Cipher, Encryption)>, +} + +impl Read for Member<'_> { + fn read(&mut self, buf: &mut [u8]) -> std::io::Result { + let mut want = (self.len - self.at).min(buf.len() as u64); + if want == 0 { + return Ok(0); + } + let span = self.cipher.as_ref().map(|(_, e)| e.span(self.at)); + if let Some((_, end)) = span { + want = want.min(end - self.at); + } + self.file.seek(SeekFrom::Start(self.start + self.at))?; + let n = self.file.read(&mut buf[..want as usize])?; + if let (Some((cipher, e)), Some((true, _))) = (&self.cipher, span) { + cipher + .crypt_ctr(e.key, &mut buf[..n], &e.iv, self.at) + .ok_or_else(|| std::io::Error::other("no key for this member"))?; + } + self.at += n as u64; + Ok(n) + } +} + +fn copy_chunks(member: &mut Member, chunks: &[Chunk], size: u64, out: &mut dyn Write) -> Result { + if chunks.iter().try_fold(0u64, |sum, c| sum.checked_add(c.size)) != Some(size) { + return Err("chunk sizes do not add up to the member size".into()); + } + for chunk in chunks { + if chunk.offset.checked_add(chunk.stored).is_none_or(|end| end > member.len) { + return Err("a chunk lies outside its member".into()); + } + member.at = chunk.offset; + let mut stored = member.by_ref().take(chunk.stored); + let written = if chunk.zlib { + let mut inflate = flate2::bufread::ZlibDecoder::new(BufReader::with_capacity(1 << 16, stored)); + // One byte more shows a stream longer than declared, and reading + // to the end checks the stream's checksum. + std::io::copy(&mut (&mut inflate).take(chunk.size + 1), out) + } else { + std::io::copy(&mut stored, out) + } + .map_err(|e| e.to_string())?; + if written != chunk.size { + return Err("a chunk's decoded size differs from the index".into()); + } + } + Ok(size) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn encryption_patterns_name_the_encrypted_spans() { + let mut record = [0u8; 64]; + record[4] = 17; + for (at, v) in [(24, 0x400u32), (32, 0x400), (40, 0x1c00)] { + record[at..at + 4].copy_from_slice(&v.to_le_bytes()); + } + let e = Encryption::parse(&record, 0x10000).unwrap(); + assert_eq!(e.span(0), (true, 0x400)); + assert_eq!(e.span(0x400), (true, 0x800)); + assert_eq!(e.span(0x800), (false, 0x2400)); + assert_eq!(e.span(0x2410), (true, 0x2800)); + assert!(e.span(0xffff).0 == ((0xffff - 0x400) % 0x2000 < 0x400)); + record[48..52].copy_from_slice(&0x1000u32.to_le_bytes()); + let e = Encryption::parse(&record, 0x10000).unwrap(); + assert_eq!(e.span(0xf000), (true, u64::MAX)); + // Without a gap everything is encrypted. + record[24..28].fill(0); + record[40..44].fill(0); + let e = Encryption::parse(&record, 0x10000).unwrap(); + assert!((0..0x10000).step_by(0x100).all(|at| e.span(at).0)); + record[4] = 16; + assert!(Encryption::parse(&record, 0x10000).is_err()); + assert!(Encryption::parse(&record[..30], 0x10000).is_err()); + } +} diff --git a/crates/rage-rpf/src/vfs.rs b/crates/rage-rpf/src/vfs.rs index 315c68a..678b5f1 100644 --- a/crates/rage-rpf/src/vfs.rs +++ b/crates/rage-rpf/src/vfs.rs @@ -11,7 +11,7 @@ use rage_crypto::GtaVKeys; #[cfg(feature = "rdr2")] use crate::Rpf8; -use crate::{EntryId, Gta4Archive, Gta4EntryId, Rpf7, RpfError}; +use crate::{EntryId, Gta4Archive, Gta4EntryId, Rpf7, Rpf9, RpfError}; /// What a virtual path points to. More variants appear with crate features /// (`rdr2`), so matches need a fallback arm. @@ -37,6 +37,10 @@ pub enum Node { Gta4Dir(Arc, Gta4EntryId), /// A file inside a GTA IV archive. Gta4File(Arc, Gta4EntryId), + /// A folder of a GTA VI archive ("" for its top). + Rpf9Dir(Arc, String), + /// A file of a GTA VI archive (index into its entries). + Rpf9File(Arc, usize), } fn is_rpf(name: &str) -> bool { @@ -69,6 +73,10 @@ pub fn resolve(root: &Path, vpath: &str, keys: Option>) -> Result< let rest: Vec = components.collect(); return resolve_rpf8(Arc::new(Rpf8::open_default(&next)?), &rest, vpath); } + if Rpf9::file_is_rpf9(&next) { + let rest: Vec = components.collect(); + return resolve_rpf9(Arc::new(Rpf9::open(&next)?), &rest, vpath); + } archive = Some(Arc::new(Rpf7::open(&next, keys.clone())?)); break; } @@ -129,6 +137,41 @@ fn resolve_rpf8(mut archive: Arc, rest: &[String], vpath: &str) -> Result< Ok(Node::Rpf8Dir(archive, dir)) } +/// Walks the rest of a path inside a GTA VI archive; nested archives are +/// entered. The archive itself resolves without its entries; anything below +/// needs them, which scans the archive if its own table cannot be read and no +/// index is at hand. +fn resolve_rpf9(mut archive: Arc, rest: &[String], vpath: &str) -> Result { + if rest.is_empty() { + return Ok(Node::Rpf9Dir(archive, String::new())); + } + let mut dir = String::new(); + for (n, comp) in rest.iter().enumerate() { + if !dir.is_empty() { + dir.push('/'); + } + dir.push_str(comp); + // Only the last component and archives on the way are entries. + if n + 1 < rest.len() && !is_rpf(comp) { + continue; + } + let entries = archive.entries()?; + let Some(i) = archive.find(&entries, &dir) else { continue }; + if archive.is_archive(&entries[i]) { + archive = Arc::new(archive.open_child(&entries[i])?); + dir.clear(); + } else if n + 1 == rest.len() { + return Ok(Node::Rpf9File(archive, i)); + } else { + return Err(RpfError::NotFound(vpath.to_owned())); + } + } + if archive.is_dir(&archive.entries()?, &dir) { + return Ok(Node::Rpf9Dir(archive, dir.to_ascii_lowercase())); + } + Err(RpfError::NotFound(vpath.to_owned())) +} + /// Walks the rest of a path inside a GTA IV archive. fn resolve_gta4(archive: Arc, rest: &[String], vpath: &str) -> Result { let mut cur = Gta4Archive::ROOT; diff --git a/docs/publishing.md b/docs/publishing.md index fba6895..89087a2 100644 --- a/docs/publishing.md +++ b/docs/publishing.md @@ -16,7 +16,7 @@ Each prepared crate has its own `README.md`, a `LICENSE` (a link to the workspace licence; `cargo package` copies the file), and, where code is derived from CodeWalker, a `NOTICE.md` with the MIT notice. -Workspace path dependencies carry `version = "0.5.0"`, so crates.io resolves +Workspace path dependencies carry `version = "0.6.0"`, so crates.io resolves them once the dependency is published. `cargo package` of a crate that depends on an unpublished workspace crate fails at "no matching package"; publish bottom-up (`rage-core`, `rage-crypto`, `rage-resource`, `rage-tfit2`, @@ -70,7 +70,7 @@ every caller in the CLI and GUI; that is left for later. * **Crate names.** `rage-*` names may be taken or confusing on crates.io; check availability (`cargo search rage-core`) or pick a prefix. -* **Version.** The crates share the workspace version (0.5.0). Independent +* **Version.** The crates share the workspace version (0.6.0). Independent versions per crate (and a 0.1.0 start) are an option. * **MSRV.** `rust-version = "1.99"` is the pinned toolchain, the only one checked. A lower MSRV (edition 2024 needs at least 1.85; the code uses diff --git a/docs/rpf9-name-hashes.md b/docs/rpf9-name-hashes.md new file mode 100644 index 0000000..49150c0 --- /dev/null +++ b/docs/rpf9-name-hashes.md @@ -0,0 +1,112 @@ +# Scarlett native name lookup + +The target is the executable identified in [rpf9-scarlett.md](rpf9-scarlett.md). +These observations use offline GNU objdump disassembly, original-file byte +reads, and isolated calls to three pure hash leaves in private mapped memory. +They are not observations of the running game. No original game file was +written, and no executable entry point or initialization code was called. + +## Lookup observations + +The function at `0x145305880` accepts a device and path string. It checks a +normalized prefix hash against device offset `0x70`, using a prefix length +from `0x78`, and then hashes the relative suffix. The suffix's last dot +selects an extension through `0x14056ee50`. A recognized extension is omitted +from the string hash and retained as a separate type. An unrecognized +extension remains part of the hashed string. + +The path lookup eventually compares typed 32-bit or 64-bit hashes, through +`0x14056ec70` and `0x14056f130`. The getters reveal the index descriptor IDs: + +| Getter | Descriptor type hash | Value | +| --- | --- | --- | +| `0x145305ee0` | `0xb7076b6245d35fb5` | u32 name hash | +| `0x145520ac0` | `0x73bcb72dce74f11f` | u64 name hash | + +These lookup paths do not compare original filename strings. Decrypting the +index therefore does not by itself reverse these hashes into all original +paths. Candidate names can be checked against the hash and type; original +spelling and case are separate unknowns. This bounded lookup inspection does +not establish that no other archive structure or metadata contains names. + +## Hash leaves and comparison + +The native normalization table at `0x1465b23b0` changes only ASCII `A`–`Z` +to `a`–`z` and backslash to slash. All other byte values are unchanged. + +| Leaf address | Algorithm | +| --- | --- | +| `0x144fc21d0` | Jenkins one-at-a-time over normalized bytes; seed zero at this caller | +| `0x144f66de0` | Normalized MurmurHash3 x64-128, seed zero, returning h1 | +| `0x144f67220` | Raw MurmurHash3 x64-128, seed zero, returning h1 | + +The two Murmur leaves XOR only the low byte of the string length into the +final states. This differs from ordinary MurmurHash3 for lengths >= 256. +The Jenkins leaf has a C-string quote rule: if the first byte is a double +quote it skips that byte and stops at the next quote or NUL. Murmur has no +such quote rule. Every leaf stops at the first NUL. + +The native 64-bit wrapper `0x144f66800` chooses a registered function pointer +at `registry + mode * 0x58 + 0x28`. Static initialization at `0x145c35461` +loads the registry pointer, puts the raw leaf at offset `0x28`, and puts the +normalized leaf at offset `0x80` (`0x145c35491`). Thus the inspected +initialization configures mode 0 as raw and mode 1 as normalized. The native +path lookup selects mode 1. This is static initialization evidence, not a +recording of the running game's registration state. + +A small Linux C harness mapped PE sections privately at the preferred image +base, replaced the imported `strlen` trampoline in that private copy with +a local Microsoft-ABI `strlen` stub, and called only the three leaf addresses. +A separately written Python algorithm matched all 354 results for 118 +synthetic inputs: empty/quoted/path strings and deterministic strings with +lengths 1–99, 127–129, 254–257, 511–513 and 1023–1024. An additional six +synthetic repeated-character vectors covered 15/16/17 and 255/256/257 bytes. +The Rust implementation also matched all 354 native outputs for the same +118 synthetic strings. The Rust tests retain selected synthetic inputs and numeric outputs, without +executable code, game data, normalization-table bytes, or keys. + +## Static extension types + +The built-in dispatcher compares `rpf` with type 0 and has three alias +families, with prefixes `z`, `i`, and `#`: + +| Type | Suffix after the family prefix | +| ---: | --- | +| 1 | mf | +| 2 | dr | +| 3 | ft | +| 4 | dd | +| 5 | td | +| 6 | bn | +| 7 | bd | +| 8 | pd | +| 9 | bs | +| 10 | sd | +| 11 | mt | +| 12 | sc | +| 13 | cs | +| 14 | datb | +| 15 | bdr | +| 16 | bdd | +| 17 | bft | +| 18 | vert | + +The dispatcher uses the imported C `strcmp` and can consult additional +registered callbacks. The registered types are numbered from 64 in the order +of three more pointer tables of 52 strings each, before VA `0x14618dec0` (the +`#` family; the `z` and `i` families precede it): `mrf`, `cut`, `gfx`, `#cd`, +`#ld`, … `#cov`. The numbers agree with the content of the archives (66 +Scaleform, 67 clips, 72 particles, 79 navigation meshes, 89 scripts). `y`-prefixed GTA V extensions are not assumed to be +aliases. The Rust candidate helper lowercases extensions before matching as +an explicit candidate-generation convention, rather than claiming that the +native `strcmp` itself ignores case. + +## Candidate collection + +The executable scanner accepts NUL-terminated ASCII strings of 3–1024 bytes +containing a slash or a recognized static resource/media extension. It +normalizes slash direction and removes literal `mount:/` prefixes, consistent +with the inspected device suffix lookup. It synthesizes no directory or +extension guesses. Absolute paths, traversal, invalid filename characters +and format placeholders are rejected. The result is candidate text, never a +verified original name until its hashes and type match a catalog entry. diff --git a/docs/rpf9-scarlett.md b/docs/rpf9-scarlett.md new file mode 100644 index 0000000..020ee2b --- /dev/null +++ b/docs/rpf9-scarlett.md @@ -0,0 +1,139 @@ +# Scarlett RPF9 header observations + +These are static observations of a user-supplied x86-64 PE file, inspected with +GNU `objdump` and a Python byte reader. The executable was read as data and was +not run. No game code, game bytes, cipher tables, or keys are included here. + +Executable: `game_scarlett_master.exe`, 120,181,760 bytes. + +SHA-256: `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993`. Addresses below are virtual addresses at image base +`0x140000000`. In this build's `.text`, file offset = VA - image base - `0xc00`. +The addresses are build-specific research references, not stable APIs. + +REA CLI 6.8.0 was available, but its doctor reported no configured native +decompiler engine (Ghidra, IDA, Hopper, or Kuna). The following native findings +therefore come from ordinary offline disassembly, not REA decompilation or +runtime evidence. + +## Clear header fields + +| Offset | Width | Observation | +| --- | --- | --- | +| `0x00` | u32 | Magic `0x52504639` | +| `0x04` | u32 | Full header extent used by loader mode 0; recovery data start | +| `0x08` | u32 | Initial header extent used by loader mode 1; the remaining header span is loaded separately | +| `0x24` | u32 | Declared entry/record count; used in layout size arithmetic | +| `0x2e` | u8 | Initial header transform selector; zero skips this transform | + +All integer fields above are little-endian. The count is a declaration; +reading it does not validate or decode the entry table. A nonzero transform +selector does not establish that every payload is encrypted. + +The loader at `0x141fb2600` reads 16 bytes and checks the magic +(`0x141fb268e`). At `0x141fb269e` it converts the caller's mode into an index +of zero or one and reads `[header + 4 + index * 4]` at `0x141fb26a7`. It +allocates that extent and reads the remainder after the initial 16 bytes. +For mode 1, `0x141fb26ec` loads the value at `+4`, `0x141fb26f1` loads `+8`, +and `0x141fb26ff` subtracts the latter from the former. The resulting byte +count is read at archive-relative offset `+8` (`0x141fb2730`–`0x141fb2744`). +Thus `+8` is a split boundary inside the header, not the archive data start. + +The layout builder at `0x14087af70` reads `+0x24` into `r10d` +(`0x14087af9a`) and passes it to `0x14087aff0`. The latter computes successive +table ranges, including `count * 24` (`0x14087b05c`, `0x14087b06d`) and +`(count - subcount) * stride * alignment` (`0x14087b07a`–`0x14087b083`). +This supports exposing the raw count as declared entries, without claiming +those entries have been recovered. + +The transform dispatcher at `0x140a348a0` reads byte `+0x2e` +(`0x140a348ae`), tests it through `0x140b85020` (a nonzero test), then +selects a family with `selector >> 1` (`0x140a348c0`). Selector zero takes +the success return without a transform. A nonzero selector's low bit +selects one combined span or two spans (`0x140a348d3`–`0x140a34962`). +Every root sample below has selector 9. + +## Root archive sample inventory + +Only the first 64 bytes and the full declared header were read for this +inventory. Hashes below identify the **stored full header**, not the complete +archive or its payload. All twelve root archives were sampled. + +| Archive | File bytes | +4 | +8 | Declared entries | Selector | Stored header SHA-256 | +| --- | ---: | ---: | ---: | ---: | ---: | --- | +| `anim.rpf` | 4407626384 | 18016 | 15360 | 265 | 9 | `4d9c1d570f50458508172613902a3075b033e907914c943fddc903d877cce7b2` | +| `appdata0.rpf` | 8880 | 864 | 832 | 2 | 9 | `fdbfc25bd0c41027e9d69d4324291f997db29d39c9513a8f72a512c4113fe95c` | +| `audio.rpf` | 28543454672 | 4944 | 4016 | 103 | 9 | `833969e3c6f13247f9da028653618b7df7733e5e7e51ddb889ffb9293121213a` | +| `common.rpf` | 6642192 | 38272 | 34080 | 418 | 9 | `c00636117394cf649c86c5cb90c1e067132d3d16ef2c66029a517c40c8ba2260` | +| `data.rpf` | 481544304 | 69728 | 62736 | 699 | 9 | `294db409d725a280ca510afe9b41afc40e4c35095545c9f1025976739eda7f42` | +| `levels.rpf` | 76155065056 | 110704 | 89920 | 2078 | 9 | `c34165af2bd74fce0f94ec36973e67796205e73fd36b67bcc79f595fe4b86a57` | +| `movies.rpf` | 8832481776 | 27328 | 22176 | 515 | 9 | `7601da37efd4c06dfc820fe0fc2662ce1e6a2a83515cb066e40eb750cb40ba59` | +| `navmeshes.rpf` | 6707512496 | 1920 | 1648 | 29 | 9 | `fccaa6261127a1628762fe6678e63920d218bedec78c81ecb1b794ef14094290` | +| `packs.rpf` | 4798213264 | 17744 | 16192 | 172 | 9 | `cf37936da5693d17c31445ae0c8f825d645f929433d45d87f7c548bd41722890` | +| `script.rpf` | 4358960 | 608 | 576 | 2 | 9 | `6739bfa0ed3f2ca735db2d7b6b5c5dddfdb0c6d844c27ddbf921eebd57513f1b` | +| `shaders.rpf` | 411695600 | 34368 | 34336 | 3 | 9 | `15f896951d3608eb45ca446c9d8198513076c0c9f2c3dd79981af8eb083a9af1` | +| `textures.rpf` | 192585024 | 1936 | 1728 | 22 | 9 | `d730f6a42de5474a7d9d490c672d4a2c0e35409a238508caf0943fdc660052e9` | + +## Members + +With the header decoded, a member is described by one payload record (raw, +chunked or resource) and optional encryption and chunk records. + +An encryption record is 64 bytes: u32 key, u16 algorithm (17: counter mode +with a big-endian 16-byte counter), the initial counter at `+6`, and a +pattern of byte counts: `+24` head, `+32` run, `+40` gap, `+48` tail. The +head is encrypted, then `run` bytes of every `run + gap`, then the tail. The +counter follows the position in the member, encrypted or not. The usual +pattern (`0x400`, `0x400`, `0x1c00`) encrypts the first 2 KiB and 1 KiB of +every 8 KiB after. The tail field was seen in one resource only. + +A resource starts with a clear 16-byte prefix. The encryption pattern and the +chunks count from its end. Decoded, the system part is followed by the +graphics part. + +A chunk record is 8 bytes: u32 start of the list *counted from the record*, +u16 number of chunks, u8 item size (8), u8 format. Members with lists at the +same distance share records. Items, with codec 0 (stored) or 3 (zlib): + +| Format | Decoded size | Stored size | Offset | Codec | +| ---: | --- | --- | --- | --- | +| 2 | u32 Γ— 16 | bits 32–57 Γ— 16, less padding in bits 58–61 | follows | bits 62–63 | +| 3 | 65536 βˆ’ bits 0–15 | 65536 βˆ’ bits 16–31 | bits 32–59 Γ— 16 | bits 60–63 | +| 4 | bits 0–23 | bits 24–47, less padding in bits 52–55 | follows | bits 56–63 | + +A chunk that follows another starts on the next multiple of 16. Members +without a chunk record are stored as they are (layout 0) or as one raw +DEFLATE stream (layout 1). + +All members of the archives above up to 256 MiB, and all members of the +archives inside them, were decoded with this: 790,347 members, with the zlib +checksums and every decoded length matching. + +## Names + +The table holds only hashes, of paths relative to the archive without the +extensions that have a type number. Names come from path strings in the +executable and in the files of `common.rpf` and `data.rpf`, checked against +the hashes. They cover most top-level files. Inside nested archives, drawables, fragments, +clip dictionaries and some other types hold their own name, which is checked +against the hash the same way (over 99% of drawables and fragments in a sample +of 1,826 archives). Some names follow a pattern: navigation meshes +(`navmesh[204][293]`), cover (`coverregion[199][257]`), height and surface +tiles, the terrain's collisions (`s09_w04_55`) and variants of other files +(`_hi`, `+hi`, `_lod`). Files without a name are listed as +`entries/_`. + +## Remaining work + +Names of the other types inside nested archives (most textures, maps and the +collisions of buildings) and of the audio archives, signature checks and archive writing. + +## Local recovery validation + +The updated CLI was built and tested against the local `common.rpf` above. +`info` reported 418 declared native slots and transform tag `0x09` without +scanning the archive. `verify common.rpf` recovered and decoded 277 entries +(47.9 MiB unpacked), with zero read/checksum/length errors. A recursive JSON +listing contained the same 277 entries. Extracting its recovery `xml` folder +wrote 259 files (40.6 MiB) with zero failures, into a temporary output folder. +These checks validate the recovery path only; 277 streams must not be +interpreted as 277 of the 418 native slots. No original archive was changed. diff --git a/site/config.toml b/site/config.toml index 768c628..06ef97d 100644 --- a/site/config.toml +++ b/site/config.toml @@ -40,7 +40,7 @@ pages = [ [[extra.docs]] title = "Games" -pages = [["gta-iv.md", "GTA IV"], ["rdr2.md", "Red Dead Redemption 2"]] +pages = [["gta-vi.md", "GTA VI"], ["gta-iv.md", "GTA IV"], ["rdr2.md", "Red Dead Redemption 2"]] [[extra.docs]] title = "Develop" diff --git a/site/content/_index.md b/site/content/_index.md index 99e6500..0165df1 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -22,9 +22,9 @@ It contains **no game files and no encryption keys**: keys are taken from your o features_title = "Highlights" features_intro = "What OpenRAGE can open, show and change today." screenshots_title = "Screenshots" -screenshots_intro = "Click a picture to enlarge it, arrow keys browse. The screenshots show files from the author's own copy of the game." +screenshots_intro = "Click a picture to enlarge it, arrow keys browse." games_title = "Supported games" -games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. **GTA VI is next:** support follows as fast as possible once it comes to PC. GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." +games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. GTA VI can be explored (read-only preview). GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." details_summary = "Checked against the whole game" download_intro = "Unpack the archive and run `openrage-gui` (or `openrage` for the command line). On first start the GUI detects your game and sets up the keys." why_title = "Why switch from OpenIV" @@ -36,6 +36,12 @@ Out of date? [Open an issue](https://github.com/Two-Play/openrage/issues). """ +# A short section that points to the GTA VI page (content/gta-vi.md). +[extra.gta6] +title = "GTA VI" +text = "OpenRAGE opens GTA VI's archives: the map in 3D, models, textures, animations, sounds and videos. A read-only preview, with your own copy of the game." +link_text = "What works in GTA VI" + [extra.hero] light = "overview-light.png" dark = "overview-dark.png" @@ -167,9 +173,11 @@ formats = "textures, models (viewer, glTF export), texts, metadata, audio and an [[extra.games]] name = "GTA VI" -archives_status = "planned" -archives = "as fast as possible once GTA VI comes to PC" -formats_status = "none" +variant = "preview" +archives_status = "partial" +archives = "RPF9 read, incl. nested archives, with your own copy of the game (Xbox Series build)" +formats_status = "partial" +formats = "models, animations, textures, maps in 3D, collisions, navigation meshes, metadata, game text, audio and videos (read-only)" [[extra.games]] name = "GTA IV" @@ -194,7 +202,7 @@ text = "Native on both, Steam and Proton installs included." [[extra.reasons]] icon = "πŸ› οΈ" title = "Actively developed" -text = "Supports GTA V Enhanced, GTA VI follows as fast as possible. OpenIV's last release, 4.1, is from January 2022." +text = "Supports GTA V Enhanced, GTA VI can be explored. OpenIV's last release, 4.1, is from January 2022." [[extra.reasons]] icon = "↩️" @@ -245,7 +253,7 @@ edge = "openrage" [[extra.compare]] feature = "Other games" openiv = "GTA IV, EFLC, Max Payne 3" -openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI as soon as it is on PC" +openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI read-only (preview)" edge = "openiv" [[extra.compare]] diff --git a/site/content/cli.md b/site/content/cli.md index a4bb7b4..ac06335 100644 --- a/site/content/cli.md +++ b/site/content/cli.md @@ -80,6 +80,7 @@ openrage model …/adder.yft --render adder.png [--yaw 1.2] # software-rend openrage export-openformats …/prop_x.ydr -o out/ # OpenIV openFormats: .odr/.oft/.odd/.otd + .mesh, .skel, .dds openrage audio x64/audio/sfx/RADIO_02_POP.rpf/alright.awc --export out/ # sounds β†’ .wav openrage clips x64c.rpf/anim/ingame/clip_move_.rpf/move_m@generic.ycd # clips of a .ycd +openrage clips …/clip_car.rpf/gameplay@vehicles@….#cd # clips of a GTA VI .#cd openrage model …/a_m_y_hipster_01.ydd --render pose.png --anim "…/move_m@generic.ycd:walk@0.5" openrage model …/csb_bogdan.ydd --render pose.png --anim "…/cuts_sil.rpf/sil_int.cut:csb_bogdan_dual@75" # cutscene pose openrage xml …/ufo.ymap [-o ufo.ymap.xml] # metadata (.ymap/.ytyp/.ymt/.ymf/.cut/.pso) β†’ XML diff --git a/site/content/gta-vi.md b/site/content/gta-vi.md new file mode 100644 index 0000000..2947976 --- /dev/null +++ b/site/content/gta-vi.md @@ -0,0 +1,155 @@ ++++ +title = "GTA VI" +description = "GTA VI in OpenRAGE: the map in 3D, RPF9 archives, models, textures, animations, sounds, videos and metadata. A read-only preview." +template = "gta-vi.html" + +[extra] +# **bold** parts are shown in the accent colour. +eyebrow = "Read-only preview" +headline = "Explore **GTA VI**" +lead = "Open RPF9 archives like folders, search the whole game and look at what is inside, on Linux and Windows." +features_title = "What you can do" +features_intro = "Everything is read from your own copy of the game. Nothing in it is changed." +screenshots_title = "Screenshots" +screenshots_intro = "OpenRAGE showing files of GTA VI. Click a picture to enlarge it, arrow keys browse." +status_title = "At a glance" +status_intro = "What OpenRAGE reads today. Scripts (`.#script`), particle effects (`.#pt`) and texture volumes are not read yet." + +# Pictures are files in static/. +[extra.hero] +image = "gta6/fly.webp" +width = 1100 +height = 720 +alt = "OpenRAGE flying over the map of GTA VI at dusk: villas on an island, towers across the water and the settings for the time of day" + +[[extra.features]] +icon = "πŸ—ΊοΈ" +title = "The map in 3D" +text = "The whole world from afar; details load where you fly." + +[[extra.features]] +icon = "πŸ—‚οΈ" +title = "Archives" +text = "RPF9 archives, nested ones too, with folders and names." + +[[extra.features]] +icon = "πŸš—" +title = "Models" +text = "Skeletons, textures, normal and specular maps, glTF export." + +[[extra.features]] +icon = "πŸƒ" +title = "Animations" +text = "Clips play on vehicles, weapons, props and parts of people." + +[[extra.features]] +icon = "πŸ”Š" +title = "Sounds and videos" +text = "Sounds with WAV export; videos in a player of their own." + +[[extra.features]] +icon = "πŸ”Ž" +title = "Search" +text = "Names, hashes and full text of the whole game." + +[[extra.screenshots]] +image = "gta6/map.webp" +width = 1100 +height = 720 +alt = "The whole map of GTA VI from afar in OpenRAGE's map window" +title = "The whole map" +caption = "every distant model in one scene" + +[[extra.screenshots]] +image = "gta6/model.webp" +width = 1100 +height = 760 +alt = "A deer trophy prop with textures in OpenRAGE's model viewer" +title = "Model viewer" +caption = "textures, normal and specular maps" + +[[extra.screenshots]] +image = "gta6/video.webp" +width = 960 +height = 600 +alt = "OpenRAGE's video player showing an abstract neon animation" +title = "Video player" +caption = "volume, repeat and full screen" + +[[extra.formats]] +what = "Archives" +files = "`.rpf` (RPF9)" +status = "browse and extract" + +[[extra.formats]] +what = "Maps" +files = "`.#map`" +status = "in 3D: a place with its surroundings, or the whole map; glTF export" + +[[extra.formats]] +what = "Models" +files = "`.#dr`, `.#ft`, `.#dd`" +status = "view, export glTF" + +[[extra.formats]] +what = "Animations" +files = "`.#cd`" +status = "play" + +[[extra.formats]] +what = "Textures" +files = "`.ttpf`, `.#td`" +status = "view, export" + +[[extra.formats]] +what = "Collisions, navigation meshes" +files = "`.#bn`, `.#nv`" +status = "view in 3D" + +[[extra.formats]] +what = "Metadata, game text" +files = "`.#mt`, `.#typ`, `.#ldbmt` and others" +status = "read as XML, search" + +[[extra.formats]] +what = "Sounds, videos" +files = "`.awc`, `.bk2`" +status = "play; export WAV" ++++ + +## Setup + +Choose the folder that contains `game_scarlett_master.exe` or RPF9 archives in the setup dialog, or under +**File β†’ Switch game… β†’ Add a game…**. + +With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it. The +game is not started, and the keys are not stored. Without the executable, or with another build, archives are shown in +a recovery view: their files are found by their content, grouped by type and offset, and without folders. + +> [!NOTE] +> OpenRAGE contains no game files and no keys, and does not help to obtain either; you need your own copy. + +## The map + +**Tools β†’ Map of the game (3D)…** shows the whole world. The search index must be complete; the first time, all map +files are read, which takes a minute or two. A single `.#map` opens as XML; **Show in 3D** there puts its objects +together with those around it. Interiors are not filled yet. + +**Fly (F)** flies through it: W A S D move, Q and E go down and up, Shift is faster, dragging looks around and the wheel +sets the speed. In the whole map, details are loaded where the camera is, as the game's own levels of detail tell. +**View** beside it sets the time of day, brightness, haze, the sea, the field of view and how far details reach. + +## Names + +Archives store hashes of their files' names. OpenRAGE finds the names in the executable, in the game's metadata, in the +files themselves and, once the search index is built, in all the other archives. Files whose name is not known are +listed under `entries/`. + +## Command line + +``` +openrage --game ls common.rpf +openrage --game index +openrage --game search walk +openrage --game map --render map.png +``` diff --git a/site/content/viewers.md b/site/content/viewers.md index cc22082..0f4399d 100644 --- a/site/content/viewers.md +++ b/site/content/viewers.md @@ -8,7 +8,7 @@ lead = "Format by format: what you see, what you can export, and what is not the toc = true +++ -This page describes GTA V. [GTA IV](@/gta-iv.md) and [Red Dead Redemption 2](@/rdr2.md) have their own pages. +This page describes GTA V. [GTA VI](@/gta-vi.md), [GTA IV](@/gta-iv.md) and [Red Dead Redemption 2](@/rdr2.md) have their own pages. Changing files is described in [Modding](@/modding.md). ## Textures diff --git a/site/static/gta6/fly.webp b/site/static/gta6/fly.webp new file mode 100644 index 0000000..ddcd6fa Binary files /dev/null and b/site/static/gta6/fly.webp differ diff --git a/site/static/gta6/map.webp b/site/static/gta6/map.webp new file mode 100644 index 0000000..f0daaf1 Binary files /dev/null and b/site/static/gta6/map.webp differ diff --git a/site/static/gta6/model.webp b/site/static/gta6/model.webp new file mode 100644 index 0000000..1f8902e Binary files /dev/null and b/site/static/gta6/model.webp differ diff --git a/site/static/gta6/video.webp b/site/static/gta6/video.webp new file mode 100644 index 0000000..5b64a6f Binary files /dev/null and b/site/static/gta6/video.webp differ diff --git a/site/static/style.css b/site/static/style.css index 767843e..3db183a 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -15,6 +15,11 @@ --ok: #15803d; --planned: #6b7280; --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.08); + /* GTA VI: the teaser and its page only */ + --vice-1: #d6247f; + --vice-2: #e8622a; + --vice-3: #b87a00; + --vice-glow: 12%; --radius: 10px; --max: 1120px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif; @@ -33,6 +38,10 @@ --accent: #fb923c; --accent-hover: #fdba74; --accent-text: #1a1206; + --vice-1: #ff4fa3; + --vice-2: #ff8a4c; + --vice-3: #ffd166; + --vice-glow: 22%; --code-bg: #262628; --ok: #4ade80; --planned: #9ca3af; @@ -51,6 +60,10 @@ --accent: #fb923c; --accent-hover: #fdba74; --accent-text: #1a1206; + --vice-1: #ff4fa3; + --vice-2: #ff8a4c; + --vice-3: #ffd166; + --vice-glow: 22%; --code-bg: #262628; --ok: #4ade80; --planned: #9ca3af; @@ -733,3 +746,60 @@ table.compare td.edge::after { /* Shorter sections: more air between them, compact tables in prose */ .prose h3 { margin-top: 1.8rem; } + +/* Short section that points to another page */ +.teaser { padding: 1.75rem 0 0; } +.teaser .card { + flex-direction: row; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 0.75rem 1.5rem; +} +.teaser .card > div { flex: 1 1 26rem; } +.teaser h2 { font-size: 1.15rem; margin: 0 0 0.25rem; } +.teaser p { margin: 0; color: var(--text-muted); font-size: 0.97rem; } +.teaser .card .btn { flex: none; align-self: center; margin: 0; } + +/* Landing pages: the text below the sections */ +.landing-text { max-width: 75ch; } + +/* GTA VI accent: a pink to yellow gradient (tokens --vice-* at the top) */ +.vice { + --vice: linear-gradient(100deg, var(--vice-1), var(--vice-2) 55%, var(--vice-3)); + --vice-shadow: 0 0 28px color-mix(in srgb, var(--vice-1) var(--vice-glow), transparent); +} +.vice.teaser .card { + border: 2px solid transparent; + background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--vice) border-box; + box-shadow: var(--vice-shadow); +} +.vice.teaser .card:hover { border-color: transparent; } +.vice.teaser h2, .vice .hero h1 strong { + width: fit-content; + background: var(--vice); + background-clip: text; + -webkit-background-clip: text; + color: transparent; +} +.vice .hero .eyebrow { + border-color: color-mix(in srgb, var(--vice-1) 45%, var(--border)); + background: color-mix(in srgb, var(--vice-1) 10%, transparent); + color: var(--vice-1); +} +.vice .hero { + background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--vice-1) var(--vice-glow), transparent), transparent 70%); +} +.vice .hero::after { + content: ""; + display: block; + width: min(320px, 60%); + height: 3px; + margin: 2.25rem auto 0; + border-radius: 999px; + background: var(--vice); +} +.vice .hero-shot { box-shadow: var(--shadow), var(--vice-shadow); } +@media (forced-colors: active) { + .vice.teaser h2, .vice .hero h1 strong { background: none; color: CanvasText; } +} diff --git a/site/templates/base.html b/site/templates/base.html index 2bce8b4..2c1f496 100644 --- a/site/templates/base.html +++ b/site/templates/base.html @@ -76,7 +76,6 @@

Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. OpenRAGE is not affiliated with or endorsed by Rockstar Games or Take-Two Interactive. - The screenshots show OpenRAGE displaying files from the author's own copy of the game.

diff --git a/site/templates/gta-vi.html b/site/templates/gta-vi.html new file mode 100644 index 0000000..f33738b --- /dev/null +++ b/site/templates/gta-vi.html @@ -0,0 +1,83 @@ +{% extends "base.html" %} +{#- A game's landing page. All text comes from content/gta-vi.md. -#} + +{% block main %} +{%- set x = page.extra %} +
+ + +
+
+

{{ x.features_title }}

+
{{ x.features_intro | markdown | safe }}
+
    + {%- for f in x.features %} +
  • {{ f.title }}

    {{ f.text | markdown(inline=true) | safe }}

  • + {%- endfor %} +
+
+
+ +
+
+

{{ x.screenshots_title }}

+

{{ x.screenshots_intro | markdown(inline=true) | safe }}

+ +
+
+ +
+
+

{{ x.status_title }}

+
{{ x.status_intro | markdown | safe }}
+
+
+ + + + + {%- for f in x.formats %} + + + + + + {%- endfor %} + +
WhatFilesStatus
{{ f.what }}{{ f.files | markdown(inline=true) | safe }}{{ f.status | markdown(inline=true) | safe }}
+ + + + +
+
+
+ {{ page.content | safe }} +
+
+
+ +{% endblock main %} diff --git a/site/templates/index.html b/site/templates/index.html index de4b9ca..0f75c6d 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -20,7 +20,7 @@

{{ x.headline | markdown(inline=true) | safe }}

  • Latest release
  • Linux & Windows
  • GTA V Β· RDR2 archives
  • -
  • GTA VI next
  • +
  • GTA VI preview
  • GPL-3.0
  • @@ -35,6 +35,21 @@

    {{ x.headline | markdown(inline=true) | safe }}

    {{ x.notice | markdown | safe }}
    + {%- if x?.gta6 %} + +
    +
    +
    +
    +

    {{ x.gta6.title }}

    +

    {{ x.gta6.text | markdown(inline=true) | safe }}

    +
    + {{ x.gta6.link_text }} +
    +
    +
    + {%- endif %} +

    {{ x.features_title }}