diff --git a/.envrc b/.envrc deleted file mode 100644 index 3550a30f..00000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 427bc9ad..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build - -on: - push: - tags: - - "v*" - workflow_dispatch: - -jobs: - CI: - name: 🔨🚀 Build and deploy - runs-on: ubuntu-latest - steps: - - name: 🚚 Checkout - uses: actions/checkout@v3 - - name: 🐍 Use Python 3.x - uses: actions/setup-python@v3.1.4 - with: - python-version: 3.x - cache: pip - - name: ⏬ Install Python dependencies - run: pip install -r requirements.txt - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 8 - - name: 🐉 Use Node.js 18.16.x - uses: actions/setup-node@v3 - with: - node-version: 18.16.x - cache: "pnpm" - - name: ⏬ Install Node dependencies - run: pnpm install - - - name: 🔥 Optimize icon font - run: pnpm minify-icons - - name: 🔨 Build site - run: pnpm build - - - name: 📦 Upload build artifacts - uses: actions/upload-artifact@v3.1.2 - with: - name: build - path: build - - name: Disable jekyll - run: touch build/.nojekyll - - name: Custom domain - run: echo 'manager.charachorder.com' > build/CNAME - - run: git config user.name github-actions - - run: git config user.email github-actions@github.com - - run: git --work-tree build add --all - - run: git commit -m "Automatic Deploy action run by github-actions" - - run: git push origin HEAD:gh-pages --force diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 2e563d84..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: "publish desktop apps" -on: - push: - tags: - - "desktop-app-v*" - workflow_dispatch: - -jobs: - publish-tauri: - permissions: - contents: write - strategy: - fail-fast: false - matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] - - runs-on: ${{ matrix.platform }} - steps: - - name: 🚚 Checkout - uses: actions/checkout@v3 - - name: 🐍 Use Python 3.x - uses: actions/setup-python@v3.1.4 - with: - python-version: 3.x - cache: pip - - name: ⏬ Install Python dependencies - run: pip install -r requirements.txt - - name: 🐉 Use Node.js 18.16.x - uses: actions/setup-node@v3 - with: - node-version: 18.16.x - cache: "npm" - - name: 🦀 Use Rust Stable - uses: dtolnay/rust-toolchain@stable - - name: 🐧 Install Linux Dependencies - if: matrix.platform == 'ubuntu-20.04' - run: | - sudo apt-get update - sudo apt-get install -y libudev-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - - name: ⏬ Install Node dependencies - run: npm ci - - name: 🔥 Optimize icon font - run: npm run minify-icons - - name: 📦 Build, Package & Release - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - with: - tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version - releaseName: "App v__VERSION__" - releaseBody: "See the assets to download this version and install." - releaseDraft: true - prerelease: false diff --git a/.gitignore b/.gitignore deleted file mode 100644 index c0cfb693..00000000 --- a/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -.DS_Store -node_modules -/build -.idea -/.svelte-kit -/package -.env -.env.* -.direnv -!.env.example -venv -vite.config.js.timestamp-* -vite.config.ts.timestamp-* -src/lib/assets/icons.min.woff2 diff --git a/static/.htaccess b/.htaccess similarity index 100% rename from static/.htaccess rename to .htaccess diff --git a/src/lib/style/form/_checkbox.scss b/.nojekyll similarity index 100% rename from src/lib/style/form/_checkbox.scss rename to .nojekyll diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 0c05da45..00000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -engine-strict=true -resolution-mode=highest diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index ffb5b319..00000000 --- a/.prettierignore +++ /dev/null @@ -1,16 +0,0 @@ -.DS_Store -node_modules -/build -/.svelte-kit -/package -.env -.env.* -!.env.example -/src-tauri/target - -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock - -static/languages/*.json diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 6b783636..00000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "plugins": ["prettier-plugin-svelte"], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] -} diff --git a/.stylelintrc.json b/.stylelintrc.json deleted file mode 100644 index 97b2cec3..00000000 --- a/.stylelintrc.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": [ - "stylelint-config-standard-scss", - "stylelint-config-recommended-scss", - "stylelint-config-html/svelte", - "stylelint-config-clean-order", - "stylelint-config-prettier-scss" - ], - "rules": { - "selector-pseudo-class-no-unknown": [ - true, - { - "ignorePseudoClasses": ["global"] - } - ] - } -} diff --git a/.typesafe-i18n.json b/.typesafe-i18n.json deleted file mode 100644 index 3db0e7b1..00000000 --- a/.typesafe-i18n.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "https://unpkg.com/typesafe-i18n@5.26.2/schema/typesafe-i18n.json", - "baseLocale": "en", - "adapter": "svelte" -} diff --git a/404.html b/404.html new file mode 100644 index 00000000..352dec89 --- /dev/null +++ b/404.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + +
+ +
+ + diff --git a/CNAME b/CNAME new file mode 100644 index 00000000..d30068a1 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +manager.charachorder.com diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 8ae95a31..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,37 +0,0 @@ -# Contributing - -## UX Principles - -- **Opinionated.** There should never be two ways to do the same thing. -- **Intuitive.** If a feature needs a description to explain it, - the feature has failed. -- **Simple.** No useless buttons that always need to be pressed. - -## UI Design - -The UI design is based on Material 3. - -## Development Setup - -### Nix - -[Enable flakes](https://nixos.wiki/wiki/Flakes#Enable_flakes), then start the development shell using - -```shell -nix develop -``` - -You may need to run through some additional setup to get Rust running inside IntelliJ. - -### Other platforms - -- NodeJS >=18.16 -- Python >=3.10 -- Rust Stable (For Tauri Development) - -I know, python in JS projects is extremely annoying, unfortunately, -it seems to be the only platform that offers a functional -way to subset variable woff2 fonts with ligatures. - -In other words, either have python as a development dependency or -serve a 3.5MB icons font of which 99.5% is completely unused. diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 0ad25db4..00000000 --- a/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are 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. - - When 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. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "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. - - To "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. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "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. - - To "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. - - An 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. - - 1. Source Code. - - The "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. - - A "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. - - The "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. - - The "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. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All 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. - - You 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. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No 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. - - When 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. - - 4. Conveying Verbatim Copies. - - You 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. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You 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: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - 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". - - 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. - - 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. - - A 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. - - 6. Conveying Non-Source Forms. - - You 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: - - 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. - - 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. - - 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. - - 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. - - 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. - - A 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. - - A "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. - - "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. - - If 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). - - The 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. - - Corresponding 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. - - 7. Additional Terms. - - "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. - - When 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. - - Notwithstanding 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: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - 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 - - 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 - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - 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. - - All 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. - - If 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. - - Additional 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. - - 8. Termination. - - You 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). - - However, 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. - - Moreover, 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. - - Termination 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. - - 9. Acceptance Not Required for Having Copies. - - You 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. - - 10. Automatic Licensing of Downstream Recipients. - - Each 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. - - An "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. - - You 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. - - 11. Patents. - - A "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". - - A 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. - - Each 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. - - In 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. - - If 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. - - If, 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. - - A 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. - - Nothing 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. - - 12. No Surrender of Others' Freedom. - - If 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. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding 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 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 work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero 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. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero 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 Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero 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. - - Later 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. - - 15. Disclaimer of Warranty. - - THERE 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. - - 16. Limitation of Liability. - - IN 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. - - 17. Interpretation of Sections 15 and 16. - - If 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. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If 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. - - To 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. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - 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 Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You 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 AGPL, see -. diff --git a/README.md b/README.md deleted file mode 100644 index 13d08c47..00000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# CharaChorder Device Manager - -The official device manager and configuration tool for CharaChorder devices. - -![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/CharaChorder/DeviceManager/build.yml) -![GitHub](https://img.shields.io/github/license/CharaChorder/DeviceManager) -[![GitHub deployments](https://img.shields.io/github/deployments/CharaChorder/DeviceManager/Website?label=delployment)](https://manager.charachorder.com/) - -Get the latest desktop release [here](https://github.com/CharaChorder/DeviceManager/releases). - -## Deployment - -### SSH Setup - -To generate a valid ssh key that can be used by the deployment workflow, -use the following command: - -```shell -ssh-keygen -m PEM -b 4096 -t rsa -f dotio -``` - -Omitting `-m PEM -b 4096` will result in a key that rsync cannot read! - -To double-check, make sure your private key starts with - -``` ------BEGIN RSA PRIVATE KEY----- -``` - -After that, add the `SSH_SERVER`, `SSH_PORT`, `SSH_PRIVATE_KEY` and `SSH_USER` -environment secrets to your environment in GitHub. - -## Releases - -Change the version in - -- [package.json](package.json) -- [tauri.conf.json](src-tauri/tauri.conf.json) -- [Cargo.toml](src-tauri/Cargo.toml) diff --git a/__data.json b/__data.json new file mode 100644 index 00000000..fe89e29c --- /dev/null +++ b/__data.json @@ -0,0 +1 @@ +{"type":"redirect","location":"/config/"} \ No newline at end of file diff --git a/_app/env.js b/_app/env.js new file mode 100644 index 00000000..f5427da6 --- /dev/null +++ b/_app/env.js @@ -0,0 +1 @@ +export const env={} \ No newline at end of file diff --git a/_app/immutable/assets/10.CQGEDJFF.css b/_app/immutable/assets/10.CQGEDJFF.css new file mode 100644 index 00000000..0d090445 --- /dev/null +++ b/_app/immutable/assets/10.CQGEDJFF.css @@ -0,0 +1 @@ +form.svelte-vncpgh{position:relative;contain:strict;overflow:hidden;display:flex;flex-direction:column;width:100%;height:100%;font-family:Noto Sans Mono,monospace;font-size:.75rem;color:var(--md-sys-color-on-secondary);border-radius:16px}fieldset.svelte-vncpgh:before{content:"$";position:absolute;bottom:8px;left:8px;font-weight:900}input.svelte-vncpgh{width:100%;margin-block-start:-16px;padding:8px;padding-block-start:24px;padding-inline-start:calc(8px + 1.5ch);font-family:Noto Sans Mono,monospace;font-weight:600;color:var(--md-sys-color-on-secondary);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--md-sys-color-secondary);border:none}.io.svelte-vncpgh{--scrollbar-color:var(--md-sys-color-secondary);z-index:1;overflow-y:auto;flex:1;padding:12px;color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border-radius:0 0 16px 16px}.svelte-vncpgh:focus-visible{outline:none}fieldset.svelte-vncpgh{all:unset;position:relative;display:block;opacity:.8;transition:opacity .25s ease}fieldset.svelte-vncpgh:focus-within{opacity:1}.anchor.svelte-vncpgh{overflow-anchor:auto;height:1px}code.svelte-vncpgh,samp.svelte-vncpgh,p.svelte-vncpgh{display:block;overflow-anchor:none;margin-block:.15rem}p.svelte-vncpgh{display:flex;justify-content:center;margin-block-end:1rem;padding:.25rem;color:var(--md-sys-color-on-secondary);background:var(--md-sys-color-secondary);border-radius:8px}code.svelte-vncpgh:before{content:"> ";margin-block-end:.25rem;font-weight:900;color:var(--md-sys-color-primary)}.svelte-vncpgh::-moz-selection{color:var(--md-sys-color-background);background:var(--md-sys-color-on-background)}.svelte-vncpgh::selection{color:var(--md-sys-color-background);background:var(--md-sys-color-on-background)}@keyframes svelte-vncpgh-blink{to,60%{opacity:1}40%,0%{opacity:0}}section.svelte-119fxqt{contain:size;overflow:hidden;display:flex;flex-direction:column;flex-grow:1;gap:16px;width:min(100%,28cm);height:100%;margin-block-end:48px} diff --git a/_app/immutable/assets/12.BBk4sqFm.css b/_app/immutable/assets/12.BBk4sqFm.css new file mode 100644 index 00000000..282f12dd --- /dev/null +++ b/_app/immutable/assets/12.BBk4sqFm.css @@ -0,0 +1 @@ +.row.svelte-1mjktf5{position:relative;height:48px}.rating-item.svelte-1mjktf5{display:flex;gap:8px;justify-content:flex-start}.rating.svelte-1mjktf5{position:absolute;left:-48px;width:-moz-max-content;width:max-content} diff --git a/_app/immutable/assets/2.BTpPbOQ4.css b/_app/immutable/assets/2.BTpPbOQ4.css new file mode 100644 index 00000000..02998473 --- /dev/null +++ b/_app/immutable/assets/2.BTpPbOQ4.css @@ -0,0 +1 @@ +@font-face{font-family:Noto Sans Mono Variable;font-weight:100 900;font-style:normal;font-display:swap;font-stretch:62.5% 100%;src:url(./noto-sans-mono-latin-ext-wght-normal.B4w9lQ7h.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Noto Sans Mono;font-weight:100 900;font-style:normal;font-display:swap;font-stretch:62.5% 100%;src:url(./noto-sans-mono-latin-wght-normal.sn4KHCQi.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Material Symbols Rounded;font-weight:100 700;font-style:normal;src:url(./icons.min.DJgoKQu_.woff2) format("woff2")}.icon{-webkit-user-select:none;user-select:none;direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-feature-settings:"liga";font-variation-settings:"FILL" var(--icon-fill, 0),"wght" var(--icon-weigth, 400),"GRAD" var(--icon-grade, 0);font-weight:400;font-style:normal;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;transition:font-variation-settings .25s ease;-moz-osx-font-smoothing:grayscale}@media not (forced-colors: active){::-webkit-scrollbar{width:8px;background:transparent;border-radius:4px}::-webkit-scrollbar-thumb{background:var(--scrollbar-color, white);border-radius:4px;transition:all .25s ease}::-webkit-scrollbar-thumb:hover{filter:brightness(120%)}::-webkit-scrollbar-thumb:active{filter:brightness(80%)}::-webkit-resizer{display:none}}.tippy-box[data-theme~=surface-variant]{color:var(--md-sys-color-on-surface-variant);background-color:var(--md-sys-color-surface-variant);filter:drop-shadow(0 0 12px rgba(0,0,0,.6666666667));border-radius:40px}.tippy-box[data-theme~=surface-variant] .tippy-content{padding:16px}.tippy-box[data-theme~=surface-variant] h2{display:flex;justify-content:center;margin-block-start:8px;margin-block-end:24px}.tippy-box[data-theme~=surface-variant][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--md-sys-color-surface-variant)}.tippy-box[data-theme~=surface-variant][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--md-sys-color-surface-variant)}.tippy-box[data-theme~=surface-variant][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--md-sys-color-surface-variant)}.tippy-box[data-theme~=surface-variant][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--md-sys-color-surface-variant)}@media (forced-colors: active){.tippy-box[data-theme~=surface-variant]{color:CanvasText;background-color:Canvas;filter:none;border:1px solid CanvasText}.tippy-box[data-theme~=surface-variant]>.tippy-arrow{display:none}}.tippy-box[data-theme~=tooltip]{color:var(--md-sys-color-on-background);background-color:var(--md-sys-color-background);border:1px solid var(--md-sys-color-outline);border-radius:8px}.tippy-box[data-theme~=search-completion]{overflow:hidden;filter:none;border-radius:0 0 16px 16px}.tippy-box[data-theme~=search-completion] .tippy-content{padding:0}a{text-decoration:none}a,label:has(input),button{cursor:pointer;display:flex;gap:4px;align-items:center;justify-content:center;width:max-content;height:48px;padding-block:8px;padding-inline:16px;font-family:inherit;font-weight:600;border-radius:32px;transition:all .25s ease}@media not (forced-colors: active){a,label:has(input),button{color:currentcolor;background:transparent;border:none}a.primary,label:has(input).primary,button.primary{color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary)}}@media (forced-colors: active){a,label:has(input),button{border:1px solid ButtonBorder;color:ButtonText}}a.icon,label:has(input).icon,button.icon{display:inline-flex;aspect-ratio:1;padding-block:0;padding-inline:0;font-size:24px;border-radius:50%}@media (forced-colors: active){a.icon,label:has(input).icon,button.icon{padding:2px;margin:2px}}a.compact,label:has(input).compact,button.compact{height:32px}@media not (forced-colors: active){label:has(input):hover,.button:hover:not(:active),a:hover:not(:active),button:hover:not(:active){filter:brightness(70%);transition:filter .25s ease}label:has(input):hover:has(:checked),label:has(input):hover.active,.button:hover:not(:active):has(:checked),.button:hover:not(:active).active,a:hover:not(:active):has(:checked),a:hover:not(:active).active,button:hover:not(:active):has(:checked),button:hover:not(:active).active{filter:brightness(120%)}label:has(input):hover:disabled,label:has(input):hover.disabled,.button:hover:not(:active):disabled,.button:hover:not(:active).disabled,a:hover:not(:active):disabled,a:hover:not(:active).disabled,button:hover:not(:active):disabled,button:hover:not(:active).disabled{opacity:.5;filter:none}}@media (forced-colors: active){label:has(input) .button:hover,a button:hover{color:ActiveText}label:has(input) .button.active,label:has(input) .button:active,a button.active,a button:active{color:SelectedItemText;background:SelectedItem}}.disabled,:disabled{pointer-events:none}@media not (forced-colors: active){.disabled,:disabled{opacity:.5}}@media (forced-colors: active){.disabled,:disabled{color:GrayText}}label:has(input[type=checkbox]){cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;gap:3px;align-items:center;justify-content:center;font-size:12px}label:has(input[type=checkbox]) input[type=checkbox]{cursor:pointer;position:relative;overflow:hidden;display:flex;width:2.5em;height:1.5em;font-size:inherit;color:inherit;border-radius:.75em;outline:2px solid currentcolor;outline-offset:-2px}label:has(input[type=checkbox]) input[type=checkbox]:after{content:"";position:absolute;top:5px;left:5px;display:block;width:calc(1.5em - 10px);height:calc(1.5em - 10px);border-radius:calc((1.5em - 10px)/2);outline-color:inherit;outline-style:solid;outline-width:calc((1.5em - 10px)/2);outline-offset:calc(-.5*(1.5em - 10px));transition:all .25s ease}label:has(input[type=checkbox]) input[type=checkbox]:checked:after{translate:calc(2.5em - (2*(1.5em - 10px)) - 1.5px) 0;outline-width:calc(2.5em - (1.5em - 2px) + 3px);outline-offset:1.5px}kbd{display:inline-flex;align-items:center;justify-content:center;height:20px;margin-block:6px;padding:4px;font-size:14px;font-weight:400;color:currentcolor;border:1px solid currentcolor;border-radius:4px}kbd.icon{padding:2px;font-size:18px}kbd:has(>kbd){gap:4px;padding:0;border:none}kbd>kbd{padding:2px}kbd>kbd.icon{padding:0}@media print{.print{visibility:visible}nav{display:none}body{--md-sys-color-background: white !important;--md-sys-color-on-background: black !important;visibility:hidden}}*{box-sizing:border-box;appearance:none}h2.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{margin-block-end:0}h2.svelte-1kun7u7>label.svelte-1kun7u7.svelte-1kun7u7{gap:10px;font-size:24px}h2.svelte-1kun7u7>label.svelte-1kun7u7>input.svelte-1kun7u7{font-size:12px}fieldset.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:flex;margin-block:16px;border:1px solid currentcolor;border-radius:16px}section.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:-moz-min-content;width:min-content}.disclaimer.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{max-width:16cm;font-size:12px;opacity:.7}input[type=file].svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:none}.save.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:flex;gap:4px}h2.svelte-13dypst.svelte-13dypst,p.svelte-13dypst.svelte-13dypst{margin-block:8px}.linux-info.svelte-13dypst a.svelte-13dypst{display:inline;padding-inline:0;text-decoration:underline}section.svelte-13dypst.svelte-13dypst{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:300px}.backdrop.svelte-13dypst.svelte-13dypst{position:absolute;z-index:1;inset:0;background:#0005;border-radius:40px}dialog.svelte-13dypst.svelte-13dypst{position:relative;z-index:2;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;margin:0;margin-block-start:16px;padding:0;color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border:none;border-radius:32px}.row.svelte-13dypst.svelte-13dypst{display:flex;gap:0;justify-content:space-between;width:100%;height:-moz-fit-content;height:fit-content}dialog.svelte-13dypst>.svelte-13dypst{margin-inline:16px}dialog.svelte-13dypst>.svelte-13dypst:first-child{display:flex;align-items:center;justify-content:center;width:100%;margin:0;padding-block:8px;color:var(--md-sys-color-on-secondary);background:var(--md-sys-color-secondary)}button.svelte-13dypst.svelte-13dypst:active:not(:disabled){color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant)}nav.svelte-1hx2o0l{display:flex;gap:8px;padding:8px;color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant);border:none;border-radius:32px}a.active.svelte-1hx2o0l{--icon-fill:1;color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary)}dialog.svelte-1v51nso{min-width:300px;max-width:512px;color:var(--md-sys-color-on-background);background:var(--md-sys-color-background);border:none;border-radius:38px;box-shadow:0 0 48px #0009}dialog.svelte-1v51nso::backdrop{opacity:.5;background:#000}h1.svelte-8y6zrd{font-size:2em;text-align:center}.buttons.svelte-8y6zrd{display:flex;justify-content:flex-end;width:100%}.click-me.svelte-1gi54bb{display:flex;align-items:center;justify-content:center;height:-moz-fit-content;height:fit-content;margin-inline:8px;padding-block:2px;padding-inline-start:8px;padding-inline-end:12px;font-family:inherit;font-weight:700;color:var(--md-sys-color-primary);border:2px solid var(--md-sys-color-primary);border-radius:18px;outline:2px dashed var(--md-sys-color-primary);outline-offset:2px}.separator.svelte-f5owx0{width:1px;height:24px;margin-inline:4px;background:var(--md-sys-color-outline-variant)}nav.svelte-f5owx0{display:grid;grid-template-columns:1fr auto 1fr;width:min(100%,28cm);margin-block:8px;margin-inline:auto;padding-inline:16px}.title.svelte-f5owx0{display:flex;align-items:center;margin-block:0;font-size:1.5rem;font-weight:700;color:var(--md-sys-color-primary);text-decoration:none}.icon.svelte-f5owx0{cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;padding:0;color:inherit;text-decoration:none;background:transparent;border:none;border-radius:50%;transition:all .25s ease}.icon.error.svelte-f5owx0{color:var(--md-sys-color-on-error);background:var(--md-sys-color-error)}.actions.svelte-f5owx0{display:flex;align-items:center}.actions.svelte-f5owx0:last-child{justify-content:flex-end}.svelte-f5owx0:disabled{pointer-events:none;opacity:.5}dialog.svelte-12tn439.svelte-12tn439{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100vw;height:100vh;color:var(--md-sys-color-on-error);background:var(--md-sys-color-error);border:none}dialog.svelte-12tn439>.svelte-12tn439{max-width:20cm}div.svelte-12tn439.svelte-12tn439{display:flex;gap:16px}a.svelte-12tn439.svelte-12tn439{color:var(--md-sys-color-on-error);text-decoration:underline}div.svelte-12tn439>p.svelte-12tn439{display:flex;gap:8px;align-items:center;list-style:none}dialog.svelte-12tn439.svelte-12tn439::backdrop{opacity:.8;background:#000}h1.svelte-12tn439.svelte-12tn439{color:inherit}.tippy-box[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=top]{transform:translateY(10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=bottom]{transform:translateY(-10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=left]{transform:translate(10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=right]{transform:translate(-10px)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.container.svelte-13x5g69{display:flex;flex-direction:column;align-items:center;justify-content:center}div.svelte-13x5g69{font-size:12px}progress.svelte-13x5g69{overflow:hidden;width:100%;height:8px;border-radius:4px}progress.svelte-13x5g69::-webkit-progress-bar{background:var(--md-sys-color-background)}progress.svelte-13x5g69::-webkit-progress-value{background:var(--md-sys-color-primary)}select.svelte-1sboptw.svelte-1sboptw{position:absolute;opacity:0}.warning.svelte-1sboptw.svelte-1sboptw{color:var(--md-sys-color-error);gap:8px;display:flex;align-items:center;justify-content:center}input[type=color].svelte-1sboptw.svelte-1sboptw{cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;inline-size:20px;block-size:20px;margin:0;padding:0;color:inherit;background:transparent;border:none;border-radius:50%}input[type=color].svelte-1sboptw.svelte-1sboptw::-webkit-color-swatch-wrapper{padding:0}input[type=color].svelte-1sboptw.svelte-1sboptw::-webkit-color-swatch{border:none}footer.svelte-1sboptw.svelte-1sboptw{display:grid;align-items:center;justify-content:center;grid-template-columns:1fr auto 1fr;width:100%;padding:8px;padding-inline-end:16px;padding-block-start:0;opacity:.4}@media (prefers-contrast: more){footer.svelte-1sboptw.svelte-1sboptw{opacity:.8}}@media (forced-colors: active){footer.svelte-1sboptw.svelte-1sboptw{opacity:unset}}ul.svelte-1sboptw.svelte-1sboptw{display:flex;gap:8px;align-items:center;margin:0;padding:0;list-style:none}ul.svelte-1sboptw.svelte-1sboptw:last-child{justify-content:flex-end}ul.svelte-1sboptw.svelte-1sboptw:last-child{gap:12px}ul.svelte-1sboptw:last-child button.svelte-1sboptw{height:24px;font-size:20px}a.svelte-1sboptw.svelte-1sboptw{display:flex;align-items:center;justify-content:center;font-size:12px;text-decoration:none;padding-inline:12px}.icon.svelte-1sboptw.svelte-1sboptw{font-size:16px}@media (forced-colors: active){.hide-forced-colors.svelte-1sboptw.svelte-1sboptw{display:none}}body{overflow:hidden;display:flex;flex-direction:column;width:100vw;height:100vh;margin:0;font-family:Noto Sans Mono,monospace;color:var(--md-sys-color-on-background);background:var(--md-sys-color-background)}main{contain:strict;display:flex;flex-direction:column;flex-grow:1;align-items:center;padding-inline:16px}h1{margin-block-start:0;font-size:4rem;font-weight:700;color:var(--md-sys-color-secondary)} diff --git a/_app/immutable/assets/6.B8XtAH-7.css b/_app/immutable/assets/6.B8XtAH-7.css new file mode 100644 index 00000000..3def7ab3 --- /dev/null +++ b/_app/immutable/assets/6.B8XtAH-7.css @@ -0,0 +1 @@ +sup.svelte-niexr.svelte-niexr{translate:0 -40%;opacity:0;transition:opacity .25s ease}.cursor.svelte-niexr.svelte-niexr{position:absolute;transform:translate(-50%);translate:0 0;width:2px;height:100%;background:var(--md-sys-color-on-secondary-container);transition:translate 50ms ease}.cursor.svelte-niexr button.svelte-niexr{position:absolute;top:-24px;left:0;height:24px;padding:0;color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border:2px solid currentcolor;border-radius:12px 12px 12px 0}.edited.svelte-niexr.svelte-niexr{color:var(--md-sys-color-primary)}.edited.svelte-niexr sup.svelte-niexr{opacity:1}[role=textbox].svelte-niexr.svelte-niexr{cursor:text;position:relative;display:flex;align-items:center;height:1em;padding-block:4px}[role=textbox].svelte-niexr.svelte-niexr:after,[role=textbox].svelte-niexr.svelte-niexr:before{content:"";position:absolute;bottom:-4px;width:100%;height:1px;opacity:0;background:currentcolor;transition:opacity .15s ease,scale .25s ease}[role=textbox].svelte-niexr.svelte-niexr:after{scale:0 1;transition-duration:.25s}[role=textbox].svelte-niexr.svelte-niexr:hover:before{opacity:.3}[role=textbox].svelte-niexr.svelte-niexr:focus-within{outline:none}[role=textbox].svelte-niexr.svelte-niexr:focus-within:after{scale:1;opacity:1}span.svelte-1gh96s2.svelte-1gh96s2{opacity:.5}@media (prefers-contrast: more){span.svelte-1gh96s2.svelte-1gh96s2{opacity:.8}}sup.svelte-1gh96s2.svelte-1gh96s2{translate:0 -60%;opacity:0;transition:opacity .25s ease}.add.svelte-1gh96s2.svelte-1gh96s2{font-size:18px;height:20px;opacity:0;--icon-fill:1}.chord.svelte-1gh96s2:hover .add.svelte-1gh96s2{opacity:1}.chord.svelte-1gh96s2.svelte-1gh96s2{position:relative;display:inline-flex;gap:4px;height:32px;margin-inline:4px}.chord.svelte-1gh96s2.svelte-1gh96s2:focus-within{outline:none}.chord.svelte-1gh96s2.svelte-1gh96s2:after{content:"";position:absolute;top:50%;transform-origin:center left;translate:-20px 0;scale:0 1;width:calc(100% - 60px);height:1px;background:currentcolor;transition:scale .25s ease,color .25s ease}.edited.svelte-1gh96s2.svelte-1gh96s2{color:var(--md-sys-color-primary)}.edited.svelte-1gh96s2>sup.svelte-1gh96s2{opacity:1}.invalid.svelte-1gh96s2.svelte-1gh96s2,.deleted.svelte-1gh96s2.svelte-1gh96s2{color:var(--md-sys-color-error)}.deleted.svelte-1gh96s2.svelte-1gh96s2:after{scale:1}.separator.svelte-w21w7s{display:inline-flex;width:1px;height:24px;opacity:.2;background:currentcolor}button.svelte-w21w7s{transition:opacity 75ms ease}td.svelte-w21w7s{position:relative}.table-buttons.svelte-w21w7s{opacity:0;transition:opacity 75ms ease}tr:focus-within>.table-buttons.svelte-w21w7s,tr:hover>.table-buttons.svelte-w21w7s{opacity:1}.search-container.svelte-41xh3q.svelte-41xh3q{display:flex;align-items:center;justify-content:center}.paginator.svelte-41xh3q.svelte-41xh3q{display:flex;justify-content:flex-end;min-width:8ch}.new-chord.svelte-41xh3q .add{visibility:hidden}.sidebar.svelte-41xh3q.svelte-41xh3q{display:flex;flex-direction:column}.sidebar.svelte-41xh3q>button.svelte-41xh3q{padding-inline-start:0}textarea.svelte-41xh3q.svelte-41xh3q{flex:1;transition:outline-color .25s ease;background:none;color:inherit;border:1px dashed var(--md-sys-color-outline);outline:2px solid transparent;outline-offset:-1px;margin:2px;padding:8px;border-radius:4px}textarea.svelte-41xh3q.svelte-41xh3q:focus{outline-color:var(--md-sys-color-primary)}@keyframes svelte-41xh3q-pulse{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}input[type=search].svelte-41xh3q.svelte-41xh3q{width:512px;margin-block-start:16px;padding-block:8px;padding-inline:16px;font-size:16px;color:inherit;background:none;border:0 solid var(--md-sys-color-surface-variant);border-bottom-width:1px;transition:all .25s ease}@media (prefers-contrast: more){input[type=search].svelte-41xh3q.svelte-41xh3q{border-color:var(--md-sys-color-outline);border-style:dashed}}input[type=search].svelte-41xh3q.svelte-41xh3q::-moz-placeholder{color:var(--md-sys-color-on-surface-variant);opacity:.8}input[type=search].svelte-41xh3q.svelte-41xh3q::placeholder{color:var(--md-sys-color-on-surface-variant);opacity:.8}input[type=search].svelte-41xh3q.svelte-41xh3q:focus{border-color:var(--md-sys-color-primary);border-style:solid;outline:none}input[type=search].loading.svelte-41xh3q.svelte-41xh3q{opacity:.4}section.svelte-41xh3q.svelte-41xh3q{position:relative;display:flex;overflow:hidden;height:100%;padding-inline:8px;border-radius:16px}.results.svelte-41xh3q.svelte-41xh3q{height:100%;min-width:min(90vw,16.5cm)}table.svelte-41xh3q.svelte-41xh3q{height:-moz-fit-content;height:fit-content;overflow:hidden;transition:all 1s ease} diff --git a/_app/immutable/assets/7.BVNnA3qB.css b/_app/immutable/assets/7.BVNnA3qB.css new file mode 100644 index 00000000..695d8fa3 --- /dev/null +++ b/_app/immutable/assets/7.BVNnA3qB.css @@ -0,0 +1 @@ +text.svelte-1pn6h4o{will-change:translate,scale;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;transform-box:fill-box;transition:fill 10ms ease,opacity .2s ease,translate .2s ease,scale .2s ease}@media (prefers-contrast: more){text.svelte-1pn6h4o{--inactive-opacity:.8;--inactive-scale:.7}}text.svelte-1pn6h4o:focus-within{outline:none}rect.svelte-ct6ehu.svelte-ct6ehu{transform-origin:center;transform-box:fill-box}path.svelte-ct6ehu.svelte-ct6ehu,g.svelte-ct6ehu.svelte-ct6ehu{transform-origin:top left;transform-box:fill-box}path.svelte-ct6ehu.svelte-ct6ehu,rect.svelte-ct6ehu.svelte-ct6ehu{fill:var(--md-sys-color-background);fill-opacity:0;stroke:currentcolor}path.svelte-ct6ehu.svelte-ct6ehu{fill:currentcolor;fill-opacity:0;stroke-opacity:.3}g.svelte-ct6ehu.svelte-ct6ehu:hover{cursor:default;opacity:.6;transition:opacity .2s ease}g.svelte-ct6ehu.svelte-ct6ehu:focus-within{color:var(--md-sys-color-primary);outline:none}g.svelte-ct6ehu:focus-within>path.svelte-ct6ehu,g.svelte-ct6ehu:focus-within>rect.svelte-ct6ehu{fill:currentcolor;fill-opacity:.2}svg.svelte-1nciqmp{overflow:visible;grid-area:"d";width:min(100%,35cm);max-height:calc(100% - 170px)}.container.svelte-mcava{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;margin-bottom:96px}fieldset.svelte-mcava{position:relative;display:flex;align-items:center;justify-content:center;padding:8px;border:none}button.icon.svelte-mcava{cursor:pointer;z-index:1;font-size:24px;color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant);border:none;transition:all .25s ease}button.icon.svelte-mcava:nth-child(2){z-index:2;aspect-ratio:1;font-size:32px;border-radius:50%}button.icon.svelte-mcava:first-child,button.icon.svelte-mcava:last-child{aspect-ratio:unset;height:unset}button.icon.svelte-mcava:first-child{margin-inline-end:-8px;padding-inline:4px 24px;border-radius:16px 0 0 16px}button.icon.svelte-mcava:last-child{margin-inline-start:-8px;padding-inline:24px 4px;border-radius:0 16px 16px 0}button.icon.active.svelte-mcava{font-weight:900;color:var(--md-sys-color-on-tertiary);background:var(--md-sys-color-tertiary)}section.svelte-160295n{display:flex;align-items:center;justify-content:center;width:100%;height:100%} diff --git a/_app/immutable/assets/8.Dmqm32Ri.css b/_app/immutable/assets/8.Dmqm32Ri.css new file mode 100644 index 00000000..3488f1a7 --- /dev/null +++ b/_app/immutable/assets/8.Dmqm32Ri.css @@ -0,0 +1 @@ +@charset "UTF-8";input[type=text].svelte-1lqm9fg{color:inherit;font-family:inherit;background:none;border:none;border-bottom:1px solid currentcolor;width:100%}input[type=text].svelte-1lqm9fg:focus{outline:none;border-color:var(--md-sys-color-secondary)}button.svelte-1lqm9fg{color:var(--md-sys-color-error)}hr.svelte-y37ne{opacity:.25}section.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{overflow-y:auto;display:flex;flex-flow:row wrap;gap:16px;justify-content:center;margin-block:auto;padding-block-end:48px}button.outline.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{border:1px solid currentcolor;border-radius:8px;height:2em;margin-block:2em;margin-inline:auto}legend.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9,legend.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9{font-size:24px;font-weight:700;position:relative;padding:0 16px}legend.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:has(label){padding:0}legend.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:not(:has(label)){opacity:.8}input[type=checkbox].svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{font-size:12px}fieldset.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{max-width:400px;border:1px solid var(--md-sys-color-outline);border-radius:24px}fieldset.svelte-vao3s9:has(>legend input:not(:checked))>.svelte-vao3s9.svelte-vao3s9:not(legend){pointer-events:none;opacity:.7}fieldset.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9{position:relative;display:flex;gap:16px;align-items:center;justify-content:space-between;margin-block:4px;font-size:14px}fieldset.svelte-vao3s9>label.svelte-vao3s9>input[type=number].svelte-vao3s9{border-radius:16px 4px 4px 16px;height:24px;text-align:center}fieldset.svelte-vao3s9>label.svelte-vao3s9>input[type=number].svelte-vao3s9:last-child:not(:only-child){border-radius:4px 16px 16px 4px}fieldset.svelte-vao3s9>label.svelte-vao3s9>input[type=number].svelte-vao3s9:only-child{border-radius:16px}fieldset.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9:has(input[type=number]){cursor:text}fieldset.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9:has(input[type=number]):hover{filter:none}fieldset.svelte-vao3s9 .unit.svelte-vao3s9.svelte-vao3s9{overflow:hidden;display:flex;gap:4px;align-items:center;justify-content:flex-start;width:67px;padding-inline-end:auto;font-size:12px;font-weight:700;background:var(--md-sys-color-secondary-container);border-radius:16px}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9{display:flex;width:5ch;height:100%;padding-block:4px;font-family:Noto Sans Mono,monospace;color:var(--md-sys-color-on-secondary);text-align:end;background:var(--md-sys-color-secondary);border:none}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9::-webkit-inner-spin-button{display:none}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9:after{content:"bleh"}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9:focus{outline:none}fieldset.svelte-vao3s9 ul.svelte-vao3s9.svelte-vao3s9,fieldset.svelte-vao3s9 p.svelte-vao3s9.svelte-vao3s9{font-size:10px}fieldset.svelte-vao3s9 ul.svelte-vao3s9 kbd,fieldset.svelte-vao3s9 p.svelte-vao3s9 kbd{font-size:12px;height:18px}label.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:has(.pending-changes){color:var(--md-sys-color-primary)}label.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:has(.pending-changes):before{position:absolute;font-size:16px;top:.5em;right:.25em;content:"•"} diff --git a/_app/immutable/assets/9.Di3VqmJi.css b/_app/immutable/assets/9.Di3VqmJi.css new file mode 100644 index 00000000..5afe0a3e --- /dev/null +++ b/_app/immutable/assets/9.Di3VqmJi.css @@ -0,0 +1 @@ +section.svelte-aqc7uo{display:flex;flex-direction:column;gap:8px;width:100%}iframe.svelte-aqc7uo{display:none}button.svelte-aqc7uo{cursor:pointer;display:flex;align-items:center;justify-content:center;width:-moz-min-content;width:min-content;padding-inline-start:0;padding-inline-end:8px;font-size:14px;font-weight:700;color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary);border:none;border-radius:4px}.editor-root.svelte-aqc7uo{width:100%;height:100%} diff --git a/_app/immutable/assets/Action.sztx-c9-.css b/_app/immutable/assets/Action.sztx-c9-.css new file mode 100644 index 00000000..0e9e40fa --- /dev/null +++ b/_app/immutable/assets/Action.sztx-c9-.css @@ -0,0 +1 @@ +p.svelte-18gg13o{margin-block:0}kbd.svelte-18hxb2i:not(.inline-kbd){height:24px;padding-block:auto;transition:color .25s ease}.left.svelte-18hxb2i{border-left-width:3px}.right.svelte-18hxb2i{border-right-width:3px}.dynamic.svelte-18hxb2i{padding:4px;border-radius:1px;min-width:8px;background:var(--md-sys-color-surface-variant)}.dynamic.inline.svelte-18hxb2i{padding:0}.inline-kbd.svelte-18hxb2i{margin-inline-end:2px}span+.inline-kbd.svelte-18hxb2i{margin-inline-start:2px} diff --git a/_app/immutable/assets/ActionSelector.BeWmbw0U.css b/_app/immutable/assets/ActionSelector.BeWmbw0U.css new file mode 100644 index 00000000..41d4909d --- /dev/null +++ b/_app/immutable/assets/ActionSelector.BeWmbw0U.css @@ -0,0 +1 @@ +button.svelte-z1pntr{display:flex;gap:4px;align-items:center;width:100%;height:auto;margin:0;padding:8px;font-family:Noto Sans Mono,monospace;border-radius:8px}@media not (forced-colors: active){button.svelte-z1pntr{color:inherit;background:transparent;border:none}button.svelte-z1pntr:focus-visible{color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant);outline:none}}@media (forced-colors: active){button.svelte-z1pntr{border:1px solid ButtonBorder;margin-block:4px}button.svelte-z1pntr:hover{color:ActiveText}}.title.svelte-z1pntr{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start}.warning.svelte-z1pntr{display:flex;align-items:center;gap:4px;color:var(--md-sys-color-error)}.warning.svelte-z1pntr>.icon{font-size:16px}.filters.svelte-1x90noz.svelte-1x90noz{display:flex;gap:4px;border:none}.filters.svelte-1x90noz label.svelte-1x90noz{height:unset;padding-block:2px;padding-inline:4px;font-size:14px;border:1px solid currentcolor;border-radius:6px}.filters.svelte-1x90noz label.svelte-1x90noz:has(:checked){color:var(--md-sys-color-on-secondary);background:var(--md-sys-color-secondary)}.filters.svelte-1x90noz label input.svelte-1x90noz{display:none}dialog.svelte-1x90noz.svelte-1x90noz{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#0009;border:none}aside.svelte-1x90noz.svelte-1x90noz{pointer-events:none;margin:8px;opacity:.4;border:1px dashed var(--md-sys-color-outline);border-radius:8px}aside.svelte-1x90noz>h3.svelte-1x90noz{width:-moz-fit-content;width:fit-content;margin-block-start:-13px;margin-block-end:0;margin-inline-start:16px;padding-inline:8px;background:var(--md-sys-color-background)}@media (prefers-contrast: more){aside.svelte-1x90noz.svelte-1x90noz{opacity:.8}}@media (forced-colors: active){aside.svelte-1x90noz.svelte-1x90noz{opacity:1;color:GrayText}}.search-row.svelte-1x90noz.svelte-1x90noz{display:flex;gap:4px;align-items:center;margin-inline:16px}.content.svelte-1x90noz.svelte-1x90noz{position:relative;transform-origin:top left;overflow:hidden;display:flex;flex-direction:column;width:min(30cm,90%);height:min(100% - 128px,90%);color:var(--md-sys-color-on-background);background:var(--md-sys-color-background);border-radius:16px}@media (forced-colors: active){.content.svelte-1x90noz.svelte-1x90noz{border:1px solid CanvasText}}input[type=search].svelte-1x90noz.svelte-1x90noz{width:100%;height:64px;margin-block-end:8px;padding-inline:16px;font-family:inherit;font-size:16px;color:currentcolor;background:none;border:none;border-bottom:1px solid var(--md-sys-color-surface-variant);transition:all .25s ease}input[type=search].svelte-1x90noz.svelte-1x90noz:focus{border-bottom:1px solid var(--md-sys-color-primary);outline:none}ul.svelte-1x90noz.svelte-1x90noz{--scrollbar-color:var(--md-sys-color-surface-variant);scrollbar-gutter:both-edges stable;overflow-y:auto;box-sizing:border-box;height:100%;margin:0;padding:0;padding-inline:4px}li.svelte-1x90noz.svelte-1x90noz{display:contents}.exact.svelte-1x90noz.svelte-1x90noz{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin-block-start:8px;border:1px solid var(--md-sys-color-primary);border-radius:8px}.exact.svelte-1x90noz>i.svelte-1x90noz{display:flex;gap:4px;align-items:center;justify-content:center;padding-inline:6px;color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary);border-radius:0 0 8px 8px}@media (forced-colors: active){.exact.svelte-1x90noz.svelte-1x90noz{background:Mark}} diff --git a/_app/immutable/assets/PwaStatus.BfcjJEup.css b/_app/immutable/assets/PwaStatus.BfcjJEup.css new file mode 100644 index 00000000..e57339d9 --- /dev/null +++ b/_app/immutable/assets/PwaStatus.BfcjJEup.css @@ -0,0 +1 @@ +button.svelte-9dwesr{cursor:pointer;color:var(--md-sys-color-on-background);background:transparent;border:none} diff --git a/_app/immutable/assets/SharePopup.BeWmbw0U.css b/_app/immutable/assets/SharePopup.BeWmbw0U.css new file mode 100644 index 00000000..41d4909d --- /dev/null +++ b/_app/immutable/assets/SharePopup.BeWmbw0U.css @@ -0,0 +1 @@ +button.svelte-z1pntr{display:flex;gap:4px;align-items:center;width:100%;height:auto;margin:0;padding:8px;font-family:Noto Sans Mono,monospace;border-radius:8px}@media not (forced-colors: active){button.svelte-z1pntr{color:inherit;background:transparent;border:none}button.svelte-z1pntr:focus-visible{color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant);outline:none}}@media (forced-colors: active){button.svelte-z1pntr{border:1px solid ButtonBorder;margin-block:4px}button.svelte-z1pntr:hover{color:ActiveText}}.title.svelte-z1pntr{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start}.warning.svelte-z1pntr{display:flex;align-items:center;gap:4px;color:var(--md-sys-color-error)}.warning.svelte-z1pntr>.icon{font-size:16px}.filters.svelte-1x90noz.svelte-1x90noz{display:flex;gap:4px;border:none}.filters.svelte-1x90noz label.svelte-1x90noz{height:unset;padding-block:2px;padding-inline:4px;font-size:14px;border:1px solid currentcolor;border-radius:6px}.filters.svelte-1x90noz label.svelte-1x90noz:has(:checked){color:var(--md-sys-color-on-secondary);background:var(--md-sys-color-secondary)}.filters.svelte-1x90noz label input.svelte-1x90noz{display:none}dialog.svelte-1x90noz.svelte-1x90noz{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#0009;border:none}aside.svelte-1x90noz.svelte-1x90noz{pointer-events:none;margin:8px;opacity:.4;border:1px dashed var(--md-sys-color-outline);border-radius:8px}aside.svelte-1x90noz>h3.svelte-1x90noz{width:-moz-fit-content;width:fit-content;margin-block-start:-13px;margin-block-end:0;margin-inline-start:16px;padding-inline:8px;background:var(--md-sys-color-background)}@media (prefers-contrast: more){aside.svelte-1x90noz.svelte-1x90noz{opacity:.8}}@media (forced-colors: active){aside.svelte-1x90noz.svelte-1x90noz{opacity:1;color:GrayText}}.search-row.svelte-1x90noz.svelte-1x90noz{display:flex;gap:4px;align-items:center;margin-inline:16px}.content.svelte-1x90noz.svelte-1x90noz{position:relative;transform-origin:top left;overflow:hidden;display:flex;flex-direction:column;width:min(30cm,90%);height:min(100% - 128px,90%);color:var(--md-sys-color-on-background);background:var(--md-sys-color-background);border-radius:16px}@media (forced-colors: active){.content.svelte-1x90noz.svelte-1x90noz{border:1px solid CanvasText}}input[type=search].svelte-1x90noz.svelte-1x90noz{width:100%;height:64px;margin-block-end:8px;padding-inline:16px;font-family:inherit;font-size:16px;color:currentcolor;background:none;border:none;border-bottom:1px solid var(--md-sys-color-surface-variant);transition:all .25s ease}input[type=search].svelte-1x90noz.svelte-1x90noz:focus{border-bottom:1px solid var(--md-sys-color-primary);outline:none}ul.svelte-1x90noz.svelte-1x90noz{--scrollbar-color:var(--md-sys-color-surface-variant);scrollbar-gutter:both-edges stable;overflow-y:auto;box-sizing:border-box;height:100%;margin:0;padding:0;padding-inline:4px}li.svelte-1x90noz.svelte-1x90noz{display:contents}.exact.svelte-1x90noz.svelte-1x90noz{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin-block-start:8px;border:1px solid var(--md-sys-color-primary);border-radius:8px}.exact.svelte-1x90noz>i.svelte-1x90noz{display:flex;gap:4px;align-items:center;justify-content:center;padding-inline:6px;color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary);border-radius:0 0 8px 8px}@media (forced-colors: active){.exact.svelte-1x90noz.svelte-1x90noz{background:Mark}} diff --git a/_app/immutable/assets/_layout.oKCNOR5j.css b/_app/immutable/assets/_layout.oKCNOR5j.css new file mode 100644 index 00000000..c1823c79 --- /dev/null +++ b/_app/immutable/assets/_layout.oKCNOR5j.css @@ -0,0 +1 @@ +@font-face{font-family:Noto Sans Mono Variable;font-weight:100 900;font-style:normal;font-display:swap;font-stretch:62.5% 100%;src:url(/_app/immutable/assets/noto-sans-mono-latin-ext-wght-normal.B4w9lQ7h.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Noto Sans Mono;font-weight:100 900;font-style:normal;font-display:swap;font-stretch:62.5% 100%;src:url(/_app/immutable/assets/noto-sans-mono-latin-wght-normal.sn4KHCQi.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Material Symbols Rounded;font-weight:100 700;font-style:normal;src:url(/_app/immutable/assets/icons.min.DJgoKQu_.woff2) format("woff2")}.icon{-webkit-user-select:none;user-select:none;direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-feature-settings:"liga";font-variation-settings:"FILL" var(--icon-fill, 0),"wght" var(--icon-weigth, 400),"GRAD" var(--icon-grade, 0);font-weight:400;font-style:normal;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;transition:font-variation-settings .25s ease;-moz-osx-font-smoothing:grayscale}@media not (forced-colors: active){::-webkit-scrollbar{width:8px;background:transparent;border-radius:4px}::-webkit-scrollbar-thumb{background:var(--scrollbar-color, white);border-radius:4px;transition:all .25s ease}::-webkit-scrollbar-thumb:hover{filter:brightness(120%)}::-webkit-scrollbar-thumb:active{filter:brightness(80%)}::-webkit-resizer{display:none}}.tippy-box[data-theme~=surface-variant]{color:var(--md-sys-color-on-surface-variant);background-color:var(--md-sys-color-surface-variant);filter:drop-shadow(0 0 12px rgba(0,0,0,.6666666667));border-radius:40px}.tippy-box[data-theme~=surface-variant] .tippy-content{padding:16px}.tippy-box[data-theme~=surface-variant] h2{display:flex;justify-content:center;margin-block-start:8px;margin-block-end:24px}.tippy-box[data-theme~=surface-variant][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--md-sys-color-surface-variant)}.tippy-box[data-theme~=surface-variant][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--md-sys-color-surface-variant)}.tippy-box[data-theme~=surface-variant][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--md-sys-color-surface-variant)}.tippy-box[data-theme~=surface-variant][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--md-sys-color-surface-variant)}@media (forced-colors: active){.tippy-box[data-theme~=surface-variant]{color:CanvasText;background-color:Canvas;filter:none;border:1px solid CanvasText}.tippy-box[data-theme~=surface-variant]>.tippy-arrow{display:none}}.tippy-box[data-theme~=tooltip]{color:var(--md-sys-color-on-background);background-color:var(--md-sys-color-background);border:1px solid var(--md-sys-color-outline);border-radius:8px}.tippy-box[data-theme~=search-completion]{overflow:hidden;filter:none;border-radius:0 0 16px 16px}.tippy-box[data-theme~=search-completion] .tippy-content{padding:0}a{text-decoration:none}a,label:has(input),button{cursor:pointer;display:flex;gap:4px;align-items:center;justify-content:center;width:max-content;height:48px;padding-block:8px;padding-inline:16px;font-family:inherit;font-weight:600;border-radius:32px;transition:all .25s ease}@media not (forced-colors: active){a,label:has(input),button{color:currentcolor;background:transparent;border:none}a.primary,label:has(input).primary,button.primary{color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary)}}@media (forced-colors: active){a,label:has(input),button{border:1px solid ButtonBorder;color:ButtonText}}a.icon,label:has(input).icon,button.icon{display:inline-flex;aspect-ratio:1;padding-block:0;padding-inline:0;font-size:24px;border-radius:50%}@media (forced-colors: active){a.icon,label:has(input).icon,button.icon{padding:2px;margin:2px}}a.compact,label:has(input).compact,button.compact{height:32px}@media not (forced-colors: active){label:has(input):hover,.button:hover:not(:active),a:hover:not(:active),button:hover:not(:active){filter:brightness(70%);transition:filter .25s ease}label:has(input):hover:has(:checked),label:has(input):hover.active,.button:hover:not(:active):has(:checked),.button:hover:not(:active).active,a:hover:not(:active):has(:checked),a:hover:not(:active).active,button:hover:not(:active):has(:checked),button:hover:not(:active).active{filter:brightness(120%)}label:has(input):hover:disabled,label:has(input):hover.disabled,.button:hover:not(:active):disabled,.button:hover:not(:active).disabled,a:hover:not(:active):disabled,a:hover:not(:active).disabled,button:hover:not(:active):disabled,button:hover:not(:active).disabled{opacity:.5;filter:none}}@media (forced-colors: active){label:has(input) .button:hover,a button:hover{color:ActiveText}label:has(input) .button.active,label:has(input) .button:active,a button.active,a button:active{color:SelectedItemText;background:SelectedItem}}.disabled,:disabled{pointer-events:none}@media not (forced-colors: active){.disabled,:disabled{opacity:.5}}@media (forced-colors: active){.disabled,:disabled{color:GrayText}}label:has(input[type=checkbox]){cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;gap:3px;align-items:center;justify-content:center;font-size:12px}label:has(input[type=checkbox]) input[type=checkbox]{cursor:pointer;position:relative;overflow:hidden;display:flex;width:2.5em;height:1.5em;font-size:inherit;color:inherit;border-radius:.75em;outline:2px solid currentcolor;outline-offset:-2px}label:has(input[type=checkbox]) input[type=checkbox]:after{content:"";position:absolute;top:5px;left:5px;display:block;width:calc(1.5em - 10px);height:calc(1.5em - 10px);border-radius:calc((1.5em - 10px)/2);outline-color:inherit;outline-style:solid;outline-width:calc((1.5em - 10px)/2);outline-offset:calc(-.5*(1.5em - 10px));transition:all .25s ease}label:has(input[type=checkbox]) input[type=checkbox]:checked:after{translate:calc(2.5em - (2*(1.5em - 10px)) - 1.5px) 0;outline-width:calc(2.5em - (1.5em - 2px) + 3px);outline-offset:1.5px}kbd{display:inline-flex;align-items:center;justify-content:center;height:20px;margin-block:6px;padding:4px;font-size:14px;font-weight:400;color:currentcolor;border:1px solid currentcolor;border-radius:4px}kbd.icon{padding:2px;font-size:18px}kbd:has(>kbd){gap:4px;padding:0;border:none}kbd>kbd{padding:2px}kbd>kbd.icon{padding:0}@media print{.print{visibility:visible}nav{display:none}body{--md-sys-color-background: white !important;--md-sys-color-on-background: black !important;visibility:hidden}}*{box-sizing:border-box;appearance:none}h2.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{margin-block-end:0}h2.svelte-1kun7u7>label.svelte-1kun7u7.svelte-1kun7u7{gap:10px;font-size:24px}h2.svelte-1kun7u7>label.svelte-1kun7u7>input.svelte-1kun7u7{font-size:12px}fieldset.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:flex;margin-block:16px;border:1px solid currentcolor;border-radius:16px}section.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:-moz-min-content;width:min-content}.disclaimer.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{max-width:16cm;font-size:12px;opacity:.7}input[type=file].svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:none}.save.svelte-1kun7u7.svelte-1kun7u7.svelte-1kun7u7{display:flex;gap:4px}h2.svelte-13dypst.svelte-13dypst,p.svelte-13dypst.svelte-13dypst{margin-block:8px}.linux-info.svelte-13dypst a.svelte-13dypst{display:inline;padding-inline:0;text-decoration:underline}section.svelte-13dypst.svelte-13dypst{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:300px}.backdrop.svelte-13dypst.svelte-13dypst{position:absolute;z-index:1;inset:0;background:#0005;border-radius:40px}dialog.svelte-13dypst.svelte-13dypst{position:relative;z-index:2;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;margin:0;margin-block-start:16px;padding:0;color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border:none;border-radius:32px}.row.svelte-13dypst.svelte-13dypst{display:flex;gap:0;justify-content:space-between;width:100%;height:-moz-fit-content;height:fit-content}dialog.svelte-13dypst>.svelte-13dypst{margin-inline:16px}dialog.svelte-13dypst>.svelte-13dypst:first-child{display:flex;align-items:center;justify-content:center;width:100%;margin:0;padding-block:8px;color:var(--md-sys-color-on-secondary);background:var(--md-sys-color-secondary)}button.svelte-13dypst.svelte-13dypst:active:not(:disabled){color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant)}nav.svelte-1hx2o0l{display:flex;gap:8px;padding:8px;color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant);border:none;border-radius:32px}a.active.svelte-1hx2o0l{--icon-fill:1;color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary)}dialog.svelte-1v51nso{min-width:300px;max-width:512px;color:var(--md-sys-color-on-background);background:var(--md-sys-color-background);border:none;border-radius:38px;box-shadow:0 0 48px #0009}dialog.svelte-1v51nso::backdrop{opacity:.5;background:#000}h1.svelte-8y6zrd{font-size:2em;text-align:center}.buttons.svelte-8y6zrd{display:flex;justify-content:flex-end;width:100%}.click-me.svelte-1gi54bb{display:flex;align-items:center;justify-content:center;height:-moz-fit-content;height:fit-content;margin-inline:8px;padding-block:2px;padding-inline-start:8px;padding-inline-end:12px;font-family:inherit;font-weight:700;color:var(--md-sys-color-primary);border:2px solid var(--md-sys-color-primary);border-radius:18px;outline:2px dashed var(--md-sys-color-primary);outline-offset:2px}.separator.svelte-f5owx0{width:1px;height:24px;margin-inline:4px;background:var(--md-sys-color-outline-variant)}nav.svelte-f5owx0{display:grid;grid-template-columns:1fr auto 1fr;width:min(100%,28cm);margin-block:8px;margin-inline:auto;padding-inline:16px}.title.svelte-f5owx0{display:flex;align-items:center;margin-block:0;font-size:1.5rem;font-weight:700;color:var(--md-sys-color-primary);text-decoration:none}.icon.svelte-f5owx0{cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;padding:0;color:inherit;text-decoration:none;background:transparent;border:none;border-radius:50%;transition:all .25s ease}.icon.error.svelte-f5owx0{color:var(--md-sys-color-on-error);background:var(--md-sys-color-error)}.actions.svelte-f5owx0{display:flex;align-items:center}.actions.svelte-f5owx0:last-child{justify-content:flex-end}.svelte-f5owx0:disabled{pointer-events:none;opacity:.5}dialog.svelte-12tn439.svelte-12tn439{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100vw;height:100vh;color:var(--md-sys-color-on-error);background:var(--md-sys-color-error);border:none}dialog.svelte-12tn439>.svelte-12tn439{max-width:20cm}div.svelte-12tn439.svelte-12tn439{display:flex;gap:16px}a.svelte-12tn439.svelte-12tn439{color:var(--md-sys-color-on-error);text-decoration:underline}div.svelte-12tn439>p.svelte-12tn439{display:flex;gap:8px;align-items:center;list-style:none}dialog.svelte-12tn439.svelte-12tn439::backdrop{opacity:.8;background:#000}h1.svelte-12tn439.svelte-12tn439{color:inherit}.tippy-box[data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=top]{transform:translateY(10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=bottom]{transform:translateY(-10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=left]{transform:translate(10px)}.tippy-box[data-animation=shift-away][data-state=hidden][data-placement^=right]{transform:translate(-10px)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.container.svelte-13x5g69{display:flex;flex-direction:column;align-items:center;justify-content:center}div.svelte-13x5g69{font-size:12px}progress.svelte-13x5g69{overflow:hidden;width:100%;height:8px;border-radius:4px}progress.svelte-13x5g69::-webkit-progress-bar{background:var(--md-sys-color-background)}progress.svelte-13x5g69::-webkit-progress-value{background:var(--md-sys-color-primary)}select.svelte-1sboptw.svelte-1sboptw{position:absolute;opacity:0}.warning.svelte-1sboptw.svelte-1sboptw{color:var(--md-sys-color-error);gap:8px;display:flex;align-items:center;justify-content:center}input[type=color].svelte-1sboptw.svelte-1sboptw{cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;inline-size:20px;block-size:20px;margin:0;padding:0;color:inherit;background:transparent;border:none;border-radius:50%}input[type=color].svelte-1sboptw.svelte-1sboptw::-webkit-color-swatch-wrapper{padding:0}input[type=color].svelte-1sboptw.svelte-1sboptw::-webkit-color-swatch{border:none}footer.svelte-1sboptw.svelte-1sboptw{display:grid;align-items:center;justify-content:center;grid-template-columns:1fr auto 1fr;width:100%;padding:8px;padding-inline-end:16px;padding-block-start:0;opacity:.4}@media (prefers-contrast: more){footer.svelte-1sboptw.svelte-1sboptw{opacity:.8}}@media (forced-colors: active){footer.svelte-1sboptw.svelte-1sboptw{opacity:unset}}ul.svelte-1sboptw.svelte-1sboptw{display:flex;gap:8px;align-items:center;margin:0;padding:0;list-style:none}ul.svelte-1sboptw.svelte-1sboptw:last-child{justify-content:flex-end}ul.svelte-1sboptw.svelte-1sboptw:last-child{gap:12px}ul.svelte-1sboptw:last-child button.svelte-1sboptw{height:24px;font-size:20px}a.svelte-1sboptw.svelte-1sboptw{display:flex;align-items:center;justify-content:center;font-size:12px;text-decoration:none;padding-inline:12px}.icon.svelte-1sboptw.svelte-1sboptw{font-size:16px}@media (forced-colors: active){.hide-forced-colors.svelte-1sboptw.svelte-1sboptw{display:none}}body{overflow:hidden;display:flex;flex-direction:column;width:100vw;height:100vh;margin:0;font-family:Noto Sans Mono,monospace;color:var(--md-sys-color-on-background);background:var(--md-sys-color-background)}main{contain:strict;display:flex;flex-direction:column;flex-grow:1;align-items:center;padding-inline:16px}h1{margin-block-start:0;font-size:4rem;font-weight:700;color:var(--md-sys-color-secondary)} diff --git a/_app/immutable/assets/_page.B8XtAH-7.css b/_app/immutable/assets/_page.B8XtAH-7.css new file mode 100644 index 00000000..3def7ab3 --- /dev/null +++ b/_app/immutable/assets/_page.B8XtAH-7.css @@ -0,0 +1 @@ +sup.svelte-niexr.svelte-niexr{translate:0 -40%;opacity:0;transition:opacity .25s ease}.cursor.svelte-niexr.svelte-niexr{position:absolute;transform:translate(-50%);translate:0 0;width:2px;height:100%;background:var(--md-sys-color-on-secondary-container);transition:translate 50ms ease}.cursor.svelte-niexr button.svelte-niexr{position:absolute;top:-24px;left:0;height:24px;padding:0;color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border:2px solid currentcolor;border-radius:12px 12px 12px 0}.edited.svelte-niexr.svelte-niexr{color:var(--md-sys-color-primary)}.edited.svelte-niexr sup.svelte-niexr{opacity:1}[role=textbox].svelte-niexr.svelte-niexr{cursor:text;position:relative;display:flex;align-items:center;height:1em;padding-block:4px}[role=textbox].svelte-niexr.svelte-niexr:after,[role=textbox].svelte-niexr.svelte-niexr:before{content:"";position:absolute;bottom:-4px;width:100%;height:1px;opacity:0;background:currentcolor;transition:opacity .15s ease,scale .25s ease}[role=textbox].svelte-niexr.svelte-niexr:after{scale:0 1;transition-duration:.25s}[role=textbox].svelte-niexr.svelte-niexr:hover:before{opacity:.3}[role=textbox].svelte-niexr.svelte-niexr:focus-within{outline:none}[role=textbox].svelte-niexr.svelte-niexr:focus-within:after{scale:1;opacity:1}span.svelte-1gh96s2.svelte-1gh96s2{opacity:.5}@media (prefers-contrast: more){span.svelte-1gh96s2.svelte-1gh96s2{opacity:.8}}sup.svelte-1gh96s2.svelte-1gh96s2{translate:0 -60%;opacity:0;transition:opacity .25s ease}.add.svelte-1gh96s2.svelte-1gh96s2{font-size:18px;height:20px;opacity:0;--icon-fill:1}.chord.svelte-1gh96s2:hover .add.svelte-1gh96s2{opacity:1}.chord.svelte-1gh96s2.svelte-1gh96s2{position:relative;display:inline-flex;gap:4px;height:32px;margin-inline:4px}.chord.svelte-1gh96s2.svelte-1gh96s2:focus-within{outline:none}.chord.svelte-1gh96s2.svelte-1gh96s2:after{content:"";position:absolute;top:50%;transform-origin:center left;translate:-20px 0;scale:0 1;width:calc(100% - 60px);height:1px;background:currentcolor;transition:scale .25s ease,color .25s ease}.edited.svelte-1gh96s2.svelte-1gh96s2{color:var(--md-sys-color-primary)}.edited.svelte-1gh96s2>sup.svelte-1gh96s2{opacity:1}.invalid.svelte-1gh96s2.svelte-1gh96s2,.deleted.svelte-1gh96s2.svelte-1gh96s2{color:var(--md-sys-color-error)}.deleted.svelte-1gh96s2.svelte-1gh96s2:after{scale:1}.separator.svelte-w21w7s{display:inline-flex;width:1px;height:24px;opacity:.2;background:currentcolor}button.svelte-w21w7s{transition:opacity 75ms ease}td.svelte-w21w7s{position:relative}.table-buttons.svelte-w21w7s{opacity:0;transition:opacity 75ms ease}tr:focus-within>.table-buttons.svelte-w21w7s,tr:hover>.table-buttons.svelte-w21w7s{opacity:1}.search-container.svelte-41xh3q.svelte-41xh3q{display:flex;align-items:center;justify-content:center}.paginator.svelte-41xh3q.svelte-41xh3q{display:flex;justify-content:flex-end;min-width:8ch}.new-chord.svelte-41xh3q .add{visibility:hidden}.sidebar.svelte-41xh3q.svelte-41xh3q{display:flex;flex-direction:column}.sidebar.svelte-41xh3q>button.svelte-41xh3q{padding-inline-start:0}textarea.svelte-41xh3q.svelte-41xh3q{flex:1;transition:outline-color .25s ease;background:none;color:inherit;border:1px dashed var(--md-sys-color-outline);outline:2px solid transparent;outline-offset:-1px;margin:2px;padding:8px;border-radius:4px}textarea.svelte-41xh3q.svelte-41xh3q:focus{outline-color:var(--md-sys-color-primary)}@keyframes svelte-41xh3q-pulse{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}input[type=search].svelte-41xh3q.svelte-41xh3q{width:512px;margin-block-start:16px;padding-block:8px;padding-inline:16px;font-size:16px;color:inherit;background:none;border:0 solid var(--md-sys-color-surface-variant);border-bottom-width:1px;transition:all .25s ease}@media (prefers-contrast: more){input[type=search].svelte-41xh3q.svelte-41xh3q{border-color:var(--md-sys-color-outline);border-style:dashed}}input[type=search].svelte-41xh3q.svelte-41xh3q::-moz-placeholder{color:var(--md-sys-color-on-surface-variant);opacity:.8}input[type=search].svelte-41xh3q.svelte-41xh3q::placeholder{color:var(--md-sys-color-on-surface-variant);opacity:.8}input[type=search].svelte-41xh3q.svelte-41xh3q:focus{border-color:var(--md-sys-color-primary);border-style:solid;outline:none}input[type=search].loading.svelte-41xh3q.svelte-41xh3q{opacity:.4}section.svelte-41xh3q.svelte-41xh3q{position:relative;display:flex;overflow:hidden;height:100%;padding-inline:8px;border-radius:16px}.results.svelte-41xh3q.svelte-41xh3q{height:100%;min-width:min(90vw,16.5cm)}table.svelte-41xh3q.svelte-41xh3q{height:-moz-fit-content;height:fit-content;overflow:hidden;transition:all 1s ease} diff --git a/_app/immutable/assets/_page.BBk4sqFm.css b/_app/immutable/assets/_page.BBk4sqFm.css new file mode 100644 index 00000000..282f12dd --- /dev/null +++ b/_app/immutable/assets/_page.BBk4sqFm.css @@ -0,0 +1 @@ +.row.svelte-1mjktf5{position:relative;height:48px}.rating-item.svelte-1mjktf5{display:flex;gap:8px;justify-content:flex-start}.rating.svelte-1mjktf5{position:absolute;left:-48px;width:-moz-max-content;width:max-content} diff --git a/_app/immutable/assets/_page.BVNnA3qB.css b/_app/immutable/assets/_page.BVNnA3qB.css new file mode 100644 index 00000000..695d8fa3 --- /dev/null +++ b/_app/immutable/assets/_page.BVNnA3qB.css @@ -0,0 +1 @@ +text.svelte-1pn6h4o{will-change:translate,scale;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;transform-box:fill-box;transition:fill 10ms ease,opacity .2s ease,translate .2s ease,scale .2s ease}@media (prefers-contrast: more){text.svelte-1pn6h4o{--inactive-opacity:.8;--inactive-scale:.7}}text.svelte-1pn6h4o:focus-within{outline:none}rect.svelte-ct6ehu.svelte-ct6ehu{transform-origin:center;transform-box:fill-box}path.svelte-ct6ehu.svelte-ct6ehu,g.svelte-ct6ehu.svelte-ct6ehu{transform-origin:top left;transform-box:fill-box}path.svelte-ct6ehu.svelte-ct6ehu,rect.svelte-ct6ehu.svelte-ct6ehu{fill:var(--md-sys-color-background);fill-opacity:0;stroke:currentcolor}path.svelte-ct6ehu.svelte-ct6ehu{fill:currentcolor;fill-opacity:0;stroke-opacity:.3}g.svelte-ct6ehu.svelte-ct6ehu:hover{cursor:default;opacity:.6;transition:opacity .2s ease}g.svelte-ct6ehu.svelte-ct6ehu:focus-within{color:var(--md-sys-color-primary);outline:none}g.svelte-ct6ehu:focus-within>path.svelte-ct6ehu,g.svelte-ct6ehu:focus-within>rect.svelte-ct6ehu{fill:currentcolor;fill-opacity:.2}svg.svelte-1nciqmp{overflow:visible;grid-area:"d";width:min(100%,35cm);max-height:calc(100% - 170px)}.container.svelte-mcava{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;margin-bottom:96px}fieldset.svelte-mcava{position:relative;display:flex;align-items:center;justify-content:center;padding:8px;border:none}button.icon.svelte-mcava{cursor:pointer;z-index:1;font-size:24px;color:var(--md-sys-color-on-surface-variant);background:var(--md-sys-color-surface-variant);border:none;transition:all .25s ease}button.icon.svelte-mcava:nth-child(2){z-index:2;aspect-ratio:1;font-size:32px;border-radius:50%}button.icon.svelte-mcava:first-child,button.icon.svelte-mcava:last-child{aspect-ratio:unset;height:unset}button.icon.svelte-mcava:first-child{margin-inline-end:-8px;padding-inline:4px 24px;border-radius:16px 0 0 16px}button.icon.svelte-mcava:last-child{margin-inline-start:-8px;padding-inline:24px 4px;border-radius:0 16px 16px 0}button.icon.active.svelte-mcava{font-weight:900;color:var(--md-sys-color-on-tertiary);background:var(--md-sys-color-tertiary)}section.svelte-160295n{display:flex;align-items:center;justify-content:center;width:100%;height:100%} diff --git a/_app/immutable/assets/_page.CQGEDJFF.css b/_app/immutable/assets/_page.CQGEDJFF.css new file mode 100644 index 00000000..0d090445 --- /dev/null +++ b/_app/immutable/assets/_page.CQGEDJFF.css @@ -0,0 +1 @@ +form.svelte-vncpgh{position:relative;contain:strict;overflow:hidden;display:flex;flex-direction:column;width:100%;height:100%;font-family:Noto Sans Mono,monospace;font-size:.75rem;color:var(--md-sys-color-on-secondary);border-radius:16px}fieldset.svelte-vncpgh:before{content:"$";position:absolute;bottom:8px;left:8px;font-weight:900}input.svelte-vncpgh{width:100%;margin-block-start:-16px;padding:8px;padding-block-start:24px;padding-inline-start:calc(8px + 1.5ch);font-family:Noto Sans Mono,monospace;font-weight:600;color:var(--md-sys-color-on-secondary);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--md-sys-color-secondary);border:none}.io.svelte-vncpgh{--scrollbar-color:var(--md-sys-color-secondary);z-index:1;overflow-y:auto;flex:1;padding:12px;color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border-radius:0 0 16px 16px}.svelte-vncpgh:focus-visible{outline:none}fieldset.svelte-vncpgh{all:unset;position:relative;display:block;opacity:.8;transition:opacity .25s ease}fieldset.svelte-vncpgh:focus-within{opacity:1}.anchor.svelte-vncpgh{overflow-anchor:auto;height:1px}code.svelte-vncpgh,samp.svelte-vncpgh,p.svelte-vncpgh{display:block;overflow-anchor:none;margin-block:.15rem}p.svelte-vncpgh{display:flex;justify-content:center;margin-block-end:1rem;padding:.25rem;color:var(--md-sys-color-on-secondary);background:var(--md-sys-color-secondary);border-radius:8px}code.svelte-vncpgh:before{content:"> ";margin-block-end:.25rem;font-weight:900;color:var(--md-sys-color-primary)}.svelte-vncpgh::-moz-selection{color:var(--md-sys-color-background);background:var(--md-sys-color-on-background)}.svelte-vncpgh::selection{color:var(--md-sys-color-background);background:var(--md-sys-color-on-background)}@keyframes svelte-vncpgh-blink{to,60%{opacity:1}40%,0%{opacity:0}}section.svelte-119fxqt{contain:size;overflow:hidden;display:flex;flex-direction:column;flex-grow:1;gap:16px;width:min(100%,28cm);height:100%;margin-block-end:48px} diff --git a/_app/immutable/assets/_page.Di3VqmJi.css b/_app/immutable/assets/_page.Di3VqmJi.css new file mode 100644 index 00000000..5afe0a3e --- /dev/null +++ b/_app/immutable/assets/_page.Di3VqmJi.css @@ -0,0 +1 @@ +section.svelte-aqc7uo{display:flex;flex-direction:column;gap:8px;width:100%}iframe.svelte-aqc7uo{display:none}button.svelte-aqc7uo{cursor:pointer;display:flex;align-items:center;justify-content:center;width:-moz-min-content;width:min-content;padding-inline-start:0;padding-inline-end:8px;font-size:14px;font-weight:700;color:var(--md-sys-color-on-primary);background:var(--md-sys-color-primary);border:none;border-radius:4px}.editor-root.svelte-aqc7uo{width:100%;height:100%} diff --git a/_app/immutable/assets/_page.Dmqm32Ri.css b/_app/immutable/assets/_page.Dmqm32Ri.css new file mode 100644 index 00000000..3488f1a7 --- /dev/null +++ b/_app/immutable/assets/_page.Dmqm32Ri.css @@ -0,0 +1 @@ +@charset "UTF-8";input[type=text].svelte-1lqm9fg{color:inherit;font-family:inherit;background:none;border:none;border-bottom:1px solid currentcolor;width:100%}input[type=text].svelte-1lqm9fg:focus{outline:none;border-color:var(--md-sys-color-secondary)}button.svelte-1lqm9fg{color:var(--md-sys-color-error)}hr.svelte-y37ne{opacity:.25}section.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{overflow-y:auto;display:flex;flex-flow:row wrap;gap:16px;justify-content:center;margin-block:auto;padding-block-end:48px}button.outline.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{border:1px solid currentcolor;border-radius:8px;height:2em;margin-block:2em;margin-inline:auto}legend.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9,legend.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9{font-size:24px;font-weight:700;position:relative;padding:0 16px}legend.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:has(label){padding:0}legend.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:not(:has(label)){opacity:.8}input[type=checkbox].svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{font-size:12px}fieldset.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9{max-width:400px;border:1px solid var(--md-sys-color-outline);border-radius:24px}fieldset.svelte-vao3s9:has(>legend input:not(:checked))>.svelte-vao3s9.svelte-vao3s9:not(legend){pointer-events:none;opacity:.7}fieldset.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9{position:relative;display:flex;gap:16px;align-items:center;justify-content:space-between;margin-block:4px;font-size:14px}fieldset.svelte-vao3s9>label.svelte-vao3s9>input[type=number].svelte-vao3s9{border-radius:16px 4px 4px 16px;height:24px;text-align:center}fieldset.svelte-vao3s9>label.svelte-vao3s9>input[type=number].svelte-vao3s9:last-child:not(:only-child){border-radius:4px 16px 16px 4px}fieldset.svelte-vao3s9>label.svelte-vao3s9>input[type=number].svelte-vao3s9:only-child{border-radius:16px}fieldset.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9:has(input[type=number]){cursor:text}fieldset.svelte-vao3s9>label.svelte-vao3s9.svelte-vao3s9:has(input[type=number]):hover{filter:none}fieldset.svelte-vao3s9 .unit.svelte-vao3s9.svelte-vao3s9{overflow:hidden;display:flex;gap:4px;align-items:center;justify-content:flex-start;width:67px;padding-inline-end:auto;font-size:12px;font-weight:700;background:var(--md-sys-color-secondary-container);border-radius:16px}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9{display:flex;width:5ch;height:100%;padding-block:4px;font-family:Noto Sans Mono,monospace;color:var(--md-sys-color-on-secondary);text-align:end;background:var(--md-sys-color-secondary);border:none}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9::-webkit-inner-spin-button{display:none}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9:after{content:"bleh"}fieldset.svelte-vao3s9 input[type=number].svelte-vao3s9.svelte-vao3s9:focus{outline:none}fieldset.svelte-vao3s9 ul.svelte-vao3s9.svelte-vao3s9,fieldset.svelte-vao3s9 p.svelte-vao3s9.svelte-vao3s9{font-size:10px}fieldset.svelte-vao3s9 ul.svelte-vao3s9 kbd,fieldset.svelte-vao3s9 p.svelte-vao3s9 kbd{font-size:12px;height:18px}label.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:has(.pending-changes){color:var(--md-sys-color-primary)}label.svelte-vao3s9.svelte-vao3s9.svelte-vao3s9:has(.pending-changes):before{position:absolute;font-size:16px;top:.5em;right:.25em;content:"•"} diff --git a/_app/immutable/assets/icons.min.DJgoKQu_.woff2 b/_app/immutable/assets/icons.min.DJgoKQu_.woff2 new file mode 100644 index 00000000..4489d4d8 Binary files /dev/null and b/_app/immutable/assets/icons.min.DJgoKQu_.woff2 differ diff --git a/_app/immutable/assets/noto-sans-mono-latin-ext-wght-normal.B4w9lQ7h.woff2 b/_app/immutable/assets/noto-sans-mono-latin-ext-wght-normal.B4w9lQ7h.woff2 new file mode 100644 index 00000000..a12d2f57 Binary files /dev/null and b/_app/immutable/assets/noto-sans-mono-latin-ext-wght-normal.B4w9lQ7h.woff2 differ diff --git a/_app/immutable/assets/noto-sans-mono-latin-wght-normal.sn4KHCQi.woff2 b/_app/immutable/assets/noto-sans-mono-latin-wght-normal.sn4KHCQi.woff2 new file mode 100644 index 00000000..fb766713 Binary files /dev/null and b/_app/immutable/assets/noto-sans-mono-latin-wght-normal.sn4KHCQi.woff2 differ diff --git a/_app/immutable/chunks/103-key.DDCbGLWx.js b/_app/immutable/chunks/103-key.DDCbGLWx.js new file mode 100644 index 00000000..44a43baa --- /dev/null +++ b/_app/immutable/chunks/103-key.DDCbGLWx.js @@ -0,0 +1,2 @@ +const e={name:"103-key",col:[{row:[{key:41},{key:58,offset:[1,0]},{key:59},{key:60},{key:61},{key:62,offset:[.5,0]},{key:63},{key:64},{key:65},{key:66,offset:[.5,0]},{key:67},{key:68},{key:69},{key:70,offset:[.25,0]},{key:71},{key:72}]},{offset:[0,.25],row:[{key:53},{key:30},{key:31},{key:32},{key:33},{key:34},{key:35},{key:36},{key:37},{key:38},{key:39},{key:45},{key:46},{key:42,size:[2,1]},{key:73,offset:[.25,0]},{key:74},{key:75},{key:83,offset:[.25,0]},{key:84},{key:85},{key:86}]},{row:[{key:43,size:[1.5,1]},{key:20},{key:26},{key:8},{key:21},{key:23},{key:28},{key:24},{key:12},{key:18},{key:19},{key:47},{key:48},{key:40,size:[1.5,1]},{key:76,offset:[.25,0]},{key:77},{key:78},{key:95,offset:[.25,0]},{key:96},{key:97},{key:87,size:[1,2]}]},{offset:[0,-1],row:[{key:57,size:[2,1]},{key:4},{key:22},{key:7},{key:9},{key:10},{key:11},{key:13},{key:14},{key:15},{key:51},{key:52},{key:49,size:[2,1]},{key:92,offset:[3.5,0]},{key:93},{key:94}]},{row:[{key:225,size:[2.5,1]},{key:29},{key:27},{key:6},{key:25},{key:5},{key:17},{key:16},{key:54},{key:55},{key:56},{key:229,size:[2.5,1]},{key:82,offset:[1.25,0]},{key:89,offset:[1.25,0]},{key:90},{key:91},{key:88,size:[1,2]}]},{offset:[0,-1],row:[{key:224,size:[1.5,1]},{key:227},{key:226,size:[1.5,1]},{key:44,size:[7,1]},{key:230,size:[1.5,1]},{key:231},{key:228,size:[1.5,1]},{key:80,offset:[.25,0]},{key:81},{key:79},{key:98,offset:[.25,0],size:[2,1]},{key:99}]}]};export{e as default}; +//# sourceMappingURL=103-key.DDCbGLWx.js.map diff --git a/_app/immutable/chunks/103-key.DDCbGLWx.js.map b/_app/immutable/chunks/103-key.DDCbGLWx.js.map new file mode 100644 index 00000000..d4b11ce5 --- /dev/null +++ b/_app/immutable/chunks/103-key.DDCbGLWx.js.map @@ -0,0 +1 @@ +{"version":3,"file":"103-key.DDCbGLWx.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/_app/immutable/chunks/Action.tNSJ0eLt.js b/_app/immutable/chunks/Action.tNSJ0eLt.js new file mode 100644 index 00000000..c9daac6d --- /dev/null +++ b/_app/immutable/chunks/Action.tNSJ0eLt.js @@ -0,0 +1,2 @@ +import{l as Ur,f as Fr,b as qr,g as zr}from"./connection.wgaIHNYB.js";import{d as ht,w as Yr}from"./index.Lgv2TFSy.js";import{K as xt}from"./keymap-codes.DVdCLxHW.js";import{s as hr,a as Xr,y as Se,g as Kr,i as Q,n as dt,f as j,e as we,R as Jr,c as Oe,b as Ae,S as Gr,m as qe,C as Qr,t as ze,d as Ye,h as Xe,j as Ke,a9 as Zr,k as Ft,aa as M,U as kt,p as Mt}from"./scheduler.CXEVs2ap.js";import{S as gr,i as yr}from"./index.CTdcniaS.js";import{e as qt}from"./each.CypvCfon.js";import{L as en}from"./i18n-svelte.D0STxjoQ.js";var W="top",X="bottom",K="right",$="left",Bt="auto",Je=[W,X,K,$],_e="start",Ue="end",tn="clippingParents",br="viewport",He="popper",rn="reference",zt=Je.reduce(function(e,t){return e.concat([t+"-"+_e,t+"-"+Ue])},[]),wr=[].concat(Je,[Bt]).reduce(function(e,t){return e.concat([t,t+"-"+_e,t+"-"+Ue])},[]),nn="beforeRead",an="read",on="afterRead",sn="beforeMain",un="main",fn="afterMain",cn="beforeWrite",ln="write",pn="afterWrite",dn=[nn,an,on,sn,un,fn,cn,ln,pn];function ie(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){var t=q(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=q(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pt(e){if(typeof ShadowRoot>"u")return!1;var t=q(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vn(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Y(a)||!ie(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var u=i[o];u===!1?a.removeAttribute(o):a.setAttribute(o,u===!0?"":u)}))})}function mn(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=o.reduce(function(f,p){return f[p]="",f},{});!Y(i)||!ie(i)||(Object.assign(i.style,u),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:vn,effect:mn,requires:["computeStyles"]};function ne(e){return e.split("-")[0]}var ye=Math.max,vt=Math.min,ke=Math.round;function Dt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ar(){return!/^((?!chrome|android).)*safari/i.test(Dt())}function Me(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Y(e)&&(i=e.offsetWidth>0&&ke(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ke(n.height)/e.offsetHeight||1);var o=be(e)?q(e):window,u=o.visualViewport,f=!Ar()&&r,p=(n.left+(f&&u?u.offsetLeft:0))/i,l=(n.top+(f&&u?u.offsetTop:0))/a,b=n.width/i,A=n.height/a;return{width:b,height:A,top:l,right:p+b,bottom:l+A,left:p,x:p,y:l}}function Rt(e){var t=Me(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Er(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Pt(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function fe(e){return q(e).getComputedStyle(e)}function hn(e){return["table","td","th"].indexOf(ie(e))>=0}function pe(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function gt(e){return ie(e)==="html"?e:e.assignedSlot||e.parentNode||(Pt(e)?e.host:null)||pe(e)}function Yt(e){return!Y(e)||fe(e).position==="fixed"?null:e.offsetParent}function gn(e){var t=/firefox/i.test(Dt()),r=/Trident/i.test(Dt());if(r&&Y(e)){var n=fe(e);if(n.position==="fixed")return null}var i=gt(e);for(Pt(i)&&(i=i.host);Y(i)&&["html","body"].indexOf(ie(i))<0;){var a=fe(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ge(e){for(var t=q(e),r=Yt(e);r&&hn(r)&&fe(r).position==="static";)r=Yt(r);return r&&(ie(r)==="html"||ie(r)==="body"&&fe(r).position==="static")?t:r||gn(e)||t}function jt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ve(e,t,r){return ye(e,vt(t,r))}function yn(e,t,r){var n=Ve(e,t,r);return n>r?r:n}function Tr(){return{top:0,right:0,bottom:0,left:0}}function xr(e){return Object.assign({},Tr(),e)}function Dr(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var bn=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xr(typeof t!="number"?t:Dr(t,Je))};function wn(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,u=ne(r.placement),f=jt(u),p=[$,K].indexOf(u)>=0,l=p?"height":"width";if(!(!a||!o)){var b=bn(i.padding,r),A=Rt(a),h=f==="y"?W:$,w=f==="y"?X:K,g=r.rects.reference[l]+r.rects.reference[f]-o[f]-r.rects.popper[l],y=o[f]-r.rects.reference[f],T=Ge(a),D=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,L=g/2-y/2,s=b[h],E=D-A[l]-b[w],v=D/2-A[l]/2+L,C=Ve(s,v,E),P=f;r.modifiersData[n]=(t={},t[P]=C,t.centerOffset=C-v,t)}}function On(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Er(t.elements.popper,i)&&(t.elements.arrow=i))}const An={name:"arrow",enabled:!0,phase:"main",fn:wn,effect:On,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Be(e){return e.split("-")[1]}var En={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tn(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:ke(r*i)/i||0,y:ke(n*i)/i||0}}function Xt(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,u=e.position,f=e.gpuAcceleration,p=e.adaptive,l=e.roundOffsets,b=e.isFixed,A=o.x,h=A===void 0?0:A,w=o.y,g=w===void 0?0:w,y=typeof l=="function"?l({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var T=o.hasOwnProperty("x"),D=o.hasOwnProperty("y"),L=$,s=W,E=window;if(p){var v=Ge(r),C="clientHeight",P="clientWidth";if(v===q(r)&&(v=pe(r),fe(v).position!=="static"&&u==="absolute"&&(C="scrollHeight",P="scrollWidth")),v=v,i===W||(i===$||i===K)&&a===Ue){s=X;var B=b&&v===E&&E.visualViewport?E.visualViewport.height:v[C];g-=B-n.height,g*=f?1:-1}if(i===$||(i===W||i===X)&&a===Ue){L=K;var _=b&&v===E&&E.visualViewport?E.visualViewport.width:v[P];h-=_-n.width,h*=f?1:-1}}var R=Object.assign({position:u},p&&En),k=l===!0?Tn({x:h,y:g},q(r)):{x:h,y:g};if(h=k.x,g=k.y,f){var S;return Object.assign({},R,(S={},S[s]=D?"0":"",S[L]=T?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",S))}return Object.assign({},R,(t={},t[s]=D?g+"px":"",t[L]=T?h+"px":"",t.transform="",t))}function xn(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,u=r.roundOffsets,f=u===void 0?!0:u,p={placement:ne(t.placement),variation:Be(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Xt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Dn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xn,data:{}};var ct={passive:!0};function Cn(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,u=o===void 0?!0:o,f=q(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(l){l.addEventListener("scroll",r.update,ct)}),u&&f.addEventListener("resize",r.update,ct),function(){a&&p.forEach(function(l){l.removeEventListener("scroll",r.update,ct)}),u&&f.removeEventListener("resize",r.update,ct)}}const Ln={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cn,data:{}};var Sn={left:"right",right:"left",bottom:"top",top:"bottom"};function pt(e){return e.replace(/left|right|bottom|top/g,function(t){return Sn[t]})}var _n={start:"end",end:"start"};function Kt(e){return e.replace(/start|end/g,function(t){return _n[t]})}function Nt(e){var t=q(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function It(e){return Me(pe(e)).left+Nt(e).scrollLeft}function kn(e,t){var r=q(e),n=pe(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,u=0,f=0;if(i){a=i.width,o=i.height;var p=Ar();(p||!p&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}return{width:a,height:o,x:u+It(e),y:f}}function Mn(e){var t,r=pe(e),n=Nt(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ye(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ye(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+It(e),f=-n.scrollTop;return fe(i||r).direction==="rtl"&&(u+=ye(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:u,y:f}}function Ht(e){var t=fe(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Cr(e){return["html","body","#document"].indexOf(ie(e))>=0?e.ownerDocument.body:Y(e)&&Ht(e)?e:Cr(gt(e))}function We(e,t){var r;t===void 0&&(t=[]);var n=Cr(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=q(n),o=i?[a].concat(a.visualViewport||[],Ht(n)?n:[]):n,u=t.concat(o);return i?u:u.concat(We(gt(o)))}function Ct(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bn(e,t){var r=Me(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Jt(e,t,r){return t===br?Ct(kn(e,r)):be(t)?Bn(t,r):Ct(Mn(pe(e)))}function Pn(e){var t=We(gt(e)),r=["absolute","fixed"].indexOf(fe(e).position)>=0,n=r&&Y(e)?Ge(e):e;return be(n)?t.filter(function(i){return be(i)&&Er(i,n)&&ie(i)!=="body"}):[]}function Rn(e,t,r,n){var i=t==="clippingParents"?Pn(e):[].concat(t),a=[].concat(i,[r]),o=a[0],u=a.reduce(function(f,p){var l=Jt(e,p,n);return f.top=ye(l.top,f.top),f.right=vt(l.right,f.right),f.bottom=vt(l.bottom,f.bottom),f.left=ye(l.left,f.left),f},Jt(e,o,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Lr(e){var t=e.reference,r=e.element,n=e.placement,i=n?ne(n):null,a=n?Be(n):null,o=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,f;switch(i){case W:f={x:o,y:t.y-r.height};break;case X:f={x:o,y:t.y+t.height};break;case K:f={x:t.x+t.width,y:u};break;case $:f={x:t.x-r.width,y:u};break;default:f={x:t.x,y:t.y}}var p=i?jt(i):null;if(p!=null){var l=p==="y"?"height":"width";switch(a){case _e:f[p]=f[p]-(t[l]/2-r[l]/2);break;case Ue:f[p]=f[p]+(t[l]/2-r[l]/2);break}}return f}function Fe(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,u=r.boundary,f=u===void 0?tn:u,p=r.rootBoundary,l=p===void 0?br:p,b=r.elementContext,A=b===void 0?He:b,h=r.altBoundary,w=h===void 0?!1:h,g=r.padding,y=g===void 0?0:g,T=xr(typeof y!="number"?y:Dr(y,Je)),D=A===He?rn:He,L=e.rects.popper,s=e.elements[w?D:A],E=Rn(be(s)?s:s.contextElement||pe(e.elements.popper),f,l,o),v=Me(e.elements.reference),C=Lr({reference:v,element:L,strategy:"absolute",placement:i}),P=Ct(Object.assign({},L,C)),B=A===He?P:v,_={top:E.top-B.top+T.top,bottom:B.bottom-E.bottom+T.bottom,left:E.left-B.left+T.left,right:B.right-E.right+T.right},R=e.modifiersData.offset;if(A===He&&R){var k=R[i];Object.keys(_).forEach(function(S){var U=[K,X].indexOf(S)>=0?1:-1,F=[W,X].indexOf(S)>=0?"y":"x";_[S]+=k[F]*U})}return _}function jn(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,u=r.flipVariations,f=r.allowedAutoPlacements,p=f===void 0?wr:f,l=Be(n),b=l?u?zt:zt.filter(function(w){return Be(w)===l}):Je,A=b.filter(function(w){return p.indexOf(w)>=0});A.length===0&&(A=b);var h=A.reduce(function(w,g){return w[g]=Fe(e,{placement:g,boundary:i,rootBoundary:a,padding:o})[ne(g)],w},{});return Object.keys(h).sort(function(w,g){return h[w]-h[g]})}function Nn(e){if(ne(e)===Bt)return[];var t=pt(e);return[Kt(e),t,Kt(t)]}function In(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,u=o===void 0?!0:o,f=r.fallbackPlacements,p=r.padding,l=r.boundary,b=r.rootBoundary,A=r.altBoundary,h=r.flipVariations,w=h===void 0?!0:h,g=r.allowedAutoPlacements,y=t.options.placement,T=ne(y),D=T===y,L=f||(D||!w?[pt(y)]:Nn(y)),s=[y].concat(L).reduce(function(ae,J){return ae.concat(ne(J)===Bt?jn(t,{placement:J,boundary:l,rootBoundary:b,padding:p,flipVariations:w,allowedAutoPlacements:g}):J)},[]),E=t.rects.reference,v=t.rects.popper,C=new Map,P=!0,B=s[0],_=0;_=0,F=U?"width":"height",I=Fe(t,{placement:R,boundary:l,rootBoundary:b,altBoundary:A,padding:p}),H=U?S?K:$:S?X:W;E[F]>v[F]&&(H=pt(H));var N=pt(H),Z=[];if(a&&Z.push(I[k]<=0),u&&Z.push(I[H]<=0,I[N]<=0),Z.every(function(ae){return ae})){B=R,P=!1;break}C.set(R,Z)}if(P)for(var ee=w?3:1,de=function(J){var oe=s.find(function(Ee){var se=C.get(Ee);if(se)return se.slice(0,J).every(function(Te){return Te})});if(oe)return B=oe,"break"},te=ee;te>0;te--){var ve=de(te);if(ve==="break")break}t.placement!==B&&(t.modifiersData[n]._skip=!0,t.placement=B,t.reset=!0)}}const Hn={name:"flip",enabled:!0,phase:"main",fn:In,requiresIfExists:["offset"],data:{_skip:!1}};function Gt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Qt(e){return[W,K,X,$].some(function(t){return e[t]>=0})}function Vn(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Fe(t,{elementContext:"reference"}),u=Fe(t,{altBoundary:!0}),f=Gt(o,n),p=Gt(u,i,a),l=Qt(f),b=Qt(p);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":b})}const Wn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vn};function $n(e,t,r){var n=ne(e),i=[$,W].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],u=a[1];return o=o||0,u=(u||0)*i,[$,K].indexOf(n)>=0?{x:u,y:o}:{x:o,y:u}}function Un(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=wr.reduce(function(l,b){return l[b]=$n(b,t.rects,a),l},{}),u=o[t.placement],f=u.x,p=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=o}const Fn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Un};function qn(e){var t=e.state,r=e.name;t.modifiersData[r]=Lr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zn={name:"popperOffsets",enabled:!0,phase:"read",fn:qn,data:{}};function Yn(e){return e==="x"?"y":"x"}function Xn(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,u=o===void 0?!1:o,f=r.boundary,p=r.rootBoundary,l=r.altBoundary,b=r.padding,A=r.tether,h=A===void 0?!0:A,w=r.tetherOffset,g=w===void 0?0:w,y=Fe(t,{boundary:f,rootBoundary:p,padding:b,altBoundary:l}),T=ne(t.placement),D=Be(t.placement),L=!D,s=jt(T),E=Yn(s),v=t.modifiersData.popperOffsets,C=t.rects.reference,P=t.rects.popper,B=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,_=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(v){if(a){var S,U=s==="y"?W:$,F=s==="y"?X:K,I=s==="y"?"height":"width",H=v[s],N=H+y[U],Z=H-y[F],ee=h?-P[I]/2:0,de=D===_e?C[I]:P[I],te=D===_e?-P[I]:-C[I],ve=t.elements.arrow,ae=h&&ve?Rt(ve):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Tr(),oe=J[U],Ee=J[F],se=Ve(0,C[I],ae[I]),Te=L?C[I]/2-ee-se-oe-_.mainAxis:de-se-oe-_.mainAxis,ce=L?-C[I]/2+ee+se+Ee+_.mainAxis:te+se+Ee+_.mainAxis,xe=t.elements.arrow&&Ge(t.elements.arrow),Ze=xe?s==="y"?xe.clientTop||0:xe.clientLeft||0:0,Pe=(S=R?.[s])!=null?S:0,et=H+Te-Pe-Ze,tt=H+ce-Pe,Re=Ve(h?vt(N,et):N,H,h?ye(Z,tt):Z);v[s]=Re,k[s]=Re-H}if(u){var je,rt=s==="x"?W:$,nt=s==="x"?X:K,ue=v[E],le=E==="y"?"height":"width",Ne=ue+y[rt],me=ue-y[nt],Ie=[W,$].indexOf(T)!==-1,it=(je=R?.[E])!=null?je:0,at=Ie?Ne:ue-C[le]-P[le]-it+_.altAxis,ot=Ie?ue+C[le]+P[le]-it-_.altAxis:me,st=h&&Ie?yn(at,ue,ot):Ve(h?at:Ne,ue,h?ot:me);v[E]=st,k[E]=st-ue}t.modifiersData[n]=k}}const Kn={name:"preventOverflow",enabled:!0,phase:"main",fn:Xn,requiresIfExists:["offset"]};function Jn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gn(e){return e===q(e)||!Y(e)?Nt(e):Jn(e)}function Qn(e){var t=e.getBoundingClientRect(),r=ke(t.width)/e.offsetWidth||1,n=ke(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Zn(e,t,r){r===void 0&&(r=!1);var n=Y(t),i=Y(t)&&Qn(t),a=pe(t),o=Me(e,i,r),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((ie(t)!=="body"||Ht(a))&&(u=Gn(t)),Y(t)?(f=Me(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=It(a))),{x:o.left+u.scrollLeft-f.x,y:o.top+u.scrollTop-f.y,width:o.width,height:o.height}}function ei(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(u){if(!r.has(u)){var f=t.get(u);f&&i(f)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function ti(e){var t=ei(e);return dn.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function ri(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ni(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Zt={placement:"bottom",modifiers:[],strategy:"absolute"};function er(){for(var e=arguments.length,t=new Array(e),r=0;r-1}function Br(e,t){return typeof e=="function"?e.apply(void 0,t):e}function tr(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function fi(e){return e.split(/\s+/).filter(Boolean)}function Le(e){return[].concat(e)}function rr(e,t){e.indexOf(t)===-1&&e.push(t)}function ci(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function li(e){return e.split("-")[0]}function mt(e){return[].slice.call(e)}function nr(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function $e(){return document.createElement("div")}function yt(e){return["Element","Fragment"].some(function(t){return Vt(e,t)})}function pi(e){return Vt(e,"NodeList")}function di(e){return Vt(e,"MouseEvent")}function vi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function mi(e){return yt(e)?[e]:pi(e)?mt(e):Array.isArray(e)?e:mt(document.querySelectorAll(e))}function At(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function ir(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function hi(e){var t,r=Le(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function gi(e,t){var r=t.clientX,n=t.clientY;return e.every(function(i){var a=i.popperRect,o=i.popperState,u=i.props,f=u.interactiveBorder,p=li(o.placement),l=o.modifiersData.offset;if(!l)return!0;var b=p==="bottom"?l.top.y:0,A=p==="top"?l.bottom.y:0,h=p==="right"?l.left.x:0,w=p==="left"?l.right.x:0,g=a.top-n+b>f,y=n-a.bottom-A>f,T=a.left-r+h>f,D=r-a.right-w>f;return g||y||T||D})}function Et(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function ar(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var re={isTouch:!1},or=0;function yi(){re.isTouch||(re.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pr))}function Pr(){var e=performance.now();e-or<20&&(re.isTouch=!1,document.removeEventListener("mousemove",Pr)),or=e}function bi(){var e=document.activeElement;if(vi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function wi(){document.addEventListener("touchstart",yi,ge),window.addEventListener("blur",bi)}var Oi=typeof window<"u"&&typeof document<"u",Ai=Oi?!!window.msCrypto:!1,Ei={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ti={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},G=Object.assign({appendTo:Mr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ei,Ti),xi=Object.keys(G),Di=function(t){var r=Object.keys(t);r.forEach(function(n){G[n]=t[n]})};function Rr(e){var t=e.plugins||[],r=t.reduce(function(n,i){var a=i.name,o=i.defaultValue;if(a){var u;n[a]=e[a]!==void 0?e[a]:(u=G[a])!=null?u:o}return n},{});return Object.assign({},e,r)}function Ci(e,t){var r=t?Object.keys(Rr(Object.assign({},G,{plugins:t}))):xi,n=r.reduce(function(i,a){var o=(e.getAttribute("data-tippy-"+a)||"").trim();if(!o)return i;if(a==="content")i[a]=o;else try{i[a]=JSON.parse(o)}catch{i[a]=o}return i},{});return n}function sr(e,t){var r=Object.assign({},t,{content:Br(t.content,[e])},t.ignoreAttributes?{}:Ci(e,t.plugins));return r.aria=Object.assign({},G.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Li=function(){return"innerHTML"};function Lt(e,t){e[Li()]=t}function ur(e){var t=$e();return e===!0?t.className=_r:(t.className=kr,yt(e)?t.appendChild(e):Lt(t,e)),t}function fr(e,t){yt(t.content)?(Lt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Lt(e,t.content):e.textContent=t.content)}function St(e){var t=e.firstElementChild,r=mt(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(Sr)}),arrow:r.find(function(n){return n.classList.contains(_r)||n.classList.contains(kr)}),backdrop:r.find(function(n){return n.classList.contains(ui)})}}function jr(e){var t=$e(),r=$e();r.className=si,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=$e();n.className=Sr,n.setAttribute("data-state","hidden"),fr(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(a,o){var u=St(t),f=u.box,p=u.content,l=u.arrow;o.theme?f.setAttribute("data-theme",o.theme):f.removeAttribute("data-theme"),typeof o.animation=="string"?f.setAttribute("data-animation",o.animation):f.removeAttribute("data-animation"),o.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?f.setAttribute("role",o.role):f.removeAttribute("role"),(a.content!==o.content||a.allowHTML!==o.allowHTML)&&fr(p,e.props),o.arrow?l?a.arrow!==o.arrow&&(f.removeChild(l),f.appendChild(ur(o.arrow))):f.appendChild(ur(o.arrow)):l&&f.removeChild(l)}return{popper:t,onUpdate:i}}jr.$$tippy=!0;var Si=1,lt=[],Tt=[];function _i(e,t){var r=sr(e,Object.assign({},G,Rr(nr(t)))),n,i,a,o=!1,u=!1,f=!1,p=!1,l,b,A,h=[],w=tr(et,r.interactiveDebounce),g,y=Si++,T=null,D=ci(r.plugins),L={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},s={id:y,reference:e,popper:$e(),popperInstance:T,props:r,state:L,plugins:D,clearDelayTimeouts:at,setProps:ot,setContent:st,show:Nr,hide:Ir,hideWithInteractivity:Hr,enable:Ie,disable:it,unmount:Vr,destroy:Wr};if(!r.render)return s;var E=r.render(s),v=E.popper,C=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+s.id,s.popper=v,e._tippy=s,v._tippy=s;var P=D.map(function(c){return c.fn(s)}),B=e.hasAttribute("aria-expanded");return xe(),ee(),H(),N("onCreate",[s]),r.showOnCreate&&Ne(),v.addEventListener("mouseenter",function(){s.props.interactive&&s.state.isVisible&&s.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){s.props.interactive&&s.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",w)}),s;function _(){var c=s.props.touch;return Array.isArray(c)?c:[c,0]}function R(){return _()[0]==="hold"}function k(){var c;return!!((c=s.props.render)!=null&&c.$$tippy)}function S(){return g||e}function U(){var c=S().parentNode;return c?hi(c):document}function F(){return St(v)}function I(c){return s.state.isMounted&&!s.state.isVisible||re.isTouch||l&&l.type==="focus"?0:Ot(s.props.delay,c?0:1,G.delay)}function H(c){c===void 0&&(c=!1),v.style.pointerEvents=s.props.interactive&&!c?"":"none",v.style.zIndex=""+s.props.zIndex}function N(c,d,m){if(m===void 0&&(m=!0),P.forEach(function(O){O[c]&&O[c].apply(O,d)}),m){var x;(x=s.props)[c].apply(x,d)}}function Z(){var c=s.props.aria;if(c.content){var d="aria-"+c.content,m=v.id,x=Le(s.props.triggerTarget||e);x.forEach(function(O){var V=O.getAttribute(d);if(s.state.isVisible)O.setAttribute(d,V?V+" "+m:m);else{var z=V&&V.replace(m,"").trim();z?O.setAttribute(d,z):O.removeAttribute(d)}})}}function ee(){if(!(B||!s.props.aria.expanded)){var c=Le(s.props.triggerTarget||e);c.forEach(function(d){s.props.interactive?d.setAttribute("aria-expanded",s.state.isVisible&&d===S()?"true":"false"):d.removeAttribute("aria-expanded")})}}function de(){U().removeEventListener("mousemove",w),lt=lt.filter(function(c){return c!==w})}function te(c){if(!(re.isTouch&&(f||c.type==="mousedown"))){var d=c.composedPath&&c.composedPath()[0]||c.target;if(!(s.props.interactive&&ar(v,d))){if(Le(s.props.triggerTarget||e).some(function(m){return ar(m,d)})){if(re.isTouch||s.state.isVisible&&s.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[s,c]);s.props.hideOnClick===!0&&(s.clearDelayTimeouts(),s.hide(),u=!0,setTimeout(function(){u=!1}),s.state.isMounted||oe())}}}function ve(){f=!0}function ae(){f=!1}function J(){var c=U();c.addEventListener("mousedown",te,!0),c.addEventListener("touchend",te,ge),c.addEventListener("touchstart",ae,ge),c.addEventListener("touchmove",ve,ge)}function oe(){var c=U();c.removeEventListener("mousedown",te,!0),c.removeEventListener("touchend",te,ge),c.removeEventListener("touchstart",ae,ge),c.removeEventListener("touchmove",ve,ge)}function Ee(c,d){Te(c,function(){!s.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&d()})}function se(c,d){Te(c,d)}function Te(c,d){var m=F().box;function x(O){O.target===m&&(Et(m,"remove",x),d())}if(c===0)return d();Et(m,"remove",b),Et(m,"add",x),b=x}function ce(c,d,m){m===void 0&&(m=!1);var x=Le(s.props.triggerTarget||e);x.forEach(function(O){O.addEventListener(c,d,m),h.push({node:O,eventType:c,handler:d,options:m})})}function xe(){R()&&(ce("touchstart",Pe,{passive:!0}),ce("touchend",tt,{passive:!0})),fi(s.props.trigger).forEach(function(c){if(c!=="manual")switch(ce(c,Pe),c){case"mouseenter":ce("mouseleave",tt);break;case"focus":ce(Ai?"focusout":"blur",Re);break;case"focusin":ce("focusout",Re);break}})}function Ze(){h.forEach(function(c){var d=c.node,m=c.eventType,x=c.handler,O=c.options;d.removeEventListener(m,x,O)}),h=[]}function Pe(c){var d,m=!1;if(!(!s.state.isEnabled||je(c)||u)){var x=((d=l)==null?void 0:d.type)==="focus";l=c,g=c.currentTarget,ee(),!s.state.isVisible&&di(c)&<.forEach(function(O){return O(c)}),c.type==="click"&&(s.props.trigger.indexOf("mouseenter")<0||o)&&s.props.hideOnClick!==!1&&s.state.isVisible?m=!0:Ne(c),c.type==="click"&&(o=!m),m&&!x&&me(c)}}function et(c){var d=c.target,m=S().contains(d)||v.contains(d);if(!(c.type==="mousemove"&&m)){var x=le().concat(v).map(function(O){var V,z=O._tippy,De=(V=z.popperInstance)==null?void 0:V.state;return De?{popperRect:O.getBoundingClientRect(),popperState:De,props:r}:null}).filter(Boolean);gi(x,c)&&(de(),me(c))}}function tt(c){var d=je(c)||s.props.trigger.indexOf("click")>=0&&o;if(!d){if(s.props.interactive){s.hideWithInteractivity(c);return}me(c)}}function Re(c){s.props.trigger.indexOf("focusin")<0&&c.target!==S()||s.props.interactive&&c.relatedTarget&&v.contains(c.relatedTarget)||me(c)}function je(c){return re.isTouch?R()!==c.type.indexOf("touch")>=0:!1}function rt(){nt();var c=s.props,d=c.popperOptions,m=c.placement,x=c.offset,O=c.getReferenceClientRect,V=c.moveTransition,z=k()?St(v).arrow:null,De=O?{getBoundingClientRect:O,contextElement:O.contextElement||S()}:e,Ut={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ut){var Ce=ut.state;if(k()){var $r=F(),wt=$r.box;["placement","reference-hidden","escaped"].forEach(function(ft){ft==="placement"?wt.setAttribute("data-placement",Ce.placement):Ce.attributes.popper["data-popper-"+ft]?wt.setAttribute("data-"+ft,""):wt.removeAttribute("data-"+ft)}),Ce.attributes.popper={}}}},he=[{name:"offset",options:{offset:x}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!V}},Ut];k()&&z&&he.push({name:"arrow",options:{element:z,padding:3}}),he.push.apply(he,d?.modifiers||[]),s.popperInstance=oi(De,v,Object.assign({},d,{placement:m,onFirstUpdate:A,modifiers:he}))}function nt(){s.popperInstance&&(s.popperInstance.destroy(),s.popperInstance=null)}function ue(){var c=s.props.appendTo,d,m=S();s.props.interactive&&c===Mr||c==="parent"?d=m.parentNode:d=Br(c,[m]),d.contains(v)||d.appendChild(v),s.state.isMounted=!0,rt()}function le(){return mt(v.querySelectorAll("[data-tippy-root]"))}function Ne(c){s.clearDelayTimeouts(),c&&N("onTrigger",[s,c]),J();var d=I(!0),m=_(),x=m[0],O=m[1];re.isTouch&&x==="hold"&&O&&(d=O),d?n=setTimeout(function(){s.show()},d):s.show()}function me(c){if(s.clearDelayTimeouts(),N("onUntrigger",[s,c]),!s.state.isVisible){oe();return}if(!(s.props.trigger.indexOf("mouseenter")>=0&&s.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(c.type)>=0&&o)){var d=I(!1);d?i=setTimeout(function(){s.state.isVisible&&s.hide()},d):a=requestAnimationFrame(function(){s.hide()})}}function Ie(){s.state.isEnabled=!0}function it(){s.hide(),s.state.isEnabled=!1}function at(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(a)}function ot(c){if(!s.state.isDestroyed){N("onBeforeUpdate",[s,c]),Ze();var d=s.props,m=sr(e,Object.assign({},d,nr(c),{ignoreAttributes:!0}));s.props=m,xe(),d.interactiveDebounce!==m.interactiveDebounce&&(de(),w=tr(et,m.interactiveDebounce)),d.triggerTarget&&!m.triggerTarget?Le(d.triggerTarget).forEach(function(x){x.removeAttribute("aria-expanded")}):m.triggerTarget&&e.removeAttribute("aria-expanded"),ee(),H(),C&&C(d,m),s.popperInstance&&(rt(),le().forEach(function(x){requestAnimationFrame(x._tippy.popperInstance.forceUpdate)})),N("onAfterUpdate",[s,c])}}function st(c){s.setProps({content:c})}function Nr(){var c=s.state.isVisible,d=s.state.isDestroyed,m=!s.state.isEnabled,x=re.isTouch&&!s.props.touch,O=Ot(s.props.duration,0,G.duration);if(!(c||d||m||x)&&!S().hasAttribute("disabled")&&(N("onShow",[s],!1),s.props.onShow(s)!==!1)){if(s.state.isVisible=!0,k()&&(v.style.visibility="visible"),H(),J(),s.state.isMounted||(v.style.transition="none"),k()){var V=F(),z=V.box,De=V.content;At([z,De],0)}A=function(){var he;if(!(!s.state.isVisible||p)){if(p=!0,v.offsetHeight,v.style.transition=s.props.moveTransition,k()&&s.props.animation){var bt=F(),ut=bt.box,Ce=bt.content;At([ut,Ce],O),ir([ut,Ce],"visible")}Z(),ee(),rr(Tt,s),(he=s.popperInstance)==null||he.forceUpdate(),N("onMount",[s]),s.props.animation&&k()&&se(O,function(){s.state.isShown=!0,N("onShown",[s])})}},ue()}}function Ir(){var c=!s.state.isVisible,d=s.state.isDestroyed,m=!s.state.isEnabled,x=Ot(s.props.duration,1,G.duration);if(!(c||d||m)&&(N("onHide",[s],!1),s.props.onHide(s)!==!1)){if(s.state.isVisible=!1,s.state.isShown=!1,p=!1,o=!1,k()&&(v.style.visibility="hidden"),de(),oe(),H(!0),k()){var O=F(),V=O.box,z=O.content;s.props.animation&&(At([V,z],x),ir([V,z],"hidden"))}Z(),ee(),s.props.animation?k()&&Ee(x,s.unmount):s.unmount()}}function Hr(c){U().addEventListener("mousemove",w),rr(lt,w),w(c)}function Vr(){s.state.isVisible&&s.hide(),s.state.isMounted&&(nt(),le().forEach(function(c){c._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v),Tt=Tt.filter(function(c){return c!==s}),s.state.isMounted=!1,N("onHidden",[s]))}function Wr(){s.state.isDestroyed||(s.clearDelayTimeouts(),s.unmount(),Ze(),delete e._tippy,s.state.isDestroyed=!0,N("onDestroy",[s]))}}function Qe(e,t){t===void 0&&(t={});var r=G.plugins.concat(t.plugins||[]);wi();var n=Object.assign({},t,{plugins:r}),i=mi(e),a=i.reduce(function(o,u){var f=u&&_i(u,n);return f&&o.push(f),o},[]);return yt(e)?a[0]:a}Qe.defaultProps=G;Qe.setDefaultProps=Di;Qe.currentInput=re;Object.assign({},Or,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Qe.setDefaultProps({render:jr});var ki=(e=>(e[e.Layout=0]="Layout",e[e.Chord=1]="Chord",e[e.Setting=2]="Setting",e))(ki||{});const Mi=Ur("changes",[]),Wt=ht(Mi,e=>{const t={layout:[new Map,new Map,new Map],chords:new Map,settings:new Map};for(const r of e)switch(r.type){case 0:t.layout[r.layer]?.set(r.id,r.action);break;case 1:t.chords.set(JSON.stringify(r.id),{actions:r.actions,phrase:r.phrase,deleted:r.deleted??!1});break;case 2:t.settings.set(r.id,r.setting);break}return t}),Ji=ht([Wt,Fr],([e,t])=>t.map((r,n)=>({value:e.settings.get(n)??r,isApplied:!e.settings.has(n)}))),Gi=ht([Wt,qr],([e,t])=>t.map((r,n)=>r.map((i,a)=>({action:e.layout[n]?.get(a)??i,isApplied:!e.layout[n]?.has(a)})))),Qi=ht([Wt,zr],([e,t])=>{const r=new Set(e.chords.keys()),n=t.map(i=>{const a=JSON.stringify(i.actions);if(e.chords.has(a)){r.delete(a);const o=e.chords.get(a);return{id:i.actions,sortBy:i.phrase.map(u=>xt.get(u)?.id??u).join(),actions:o.actions,phrase:o.phrase,actionsChanged:a!==JSON.stringify(o.actions),phraseChanged:JSON.stringify(i.phrase)!==JSON.stringify(o.phrase),isApplied:!1,deleted:o.deleted}}else return{id:i.actions,sortBy:i.phrase.map(o=>xt.get(o)?.id??o).join(),actions:i.actions,phrase:i.phrase,phraseChanged:!1,actionsChanged:!1,isApplied:!0,deleted:!1}});for(const i of r){const a=e.chords.get(i);n.push({sortBy:"",isApplied:!1,actionsChanged:!0,phraseChanged:!1,deleted:a.deleted,id:JSON.parse(i),phrase:a.phrase,actions:a.actions})}return n.sort(({sortBy:i},{sortBy:a})=>i.localeCompare(a))});function cr(e,t,r){const n=e.slice();return n[2]=t[r],n}function lr(e){let t,r;return{c(){t=we("p"),r=new Jr(!1),this.h()},l(n){t=Oe(n,"P",{class:!0});var i=Ae(t);r=Gr(i,!1),i.forEach(j),this.h()},h(){r.a=null,qe(t,"class","svelte-18gg13o")},m(n,i){Q(n,t,i),r.m(e[0],t)},p(n,i){i&1&&r.p(n[0])},d(n){n&&j(t)}}}function pr(e){let t,r=qt(e[1].split("+")),n=[];for(let i=0;i{"title"in a&&r(0,n=a.title),"shortcut"in a&&r(1,i=a.shortcut)},[n,i]}class Ri extends gr{constructor(t){super(),yr(this,t,Pi,Bi,hr,{title:0,shortcut:1})}}const vr=new Map,$t=(e,{title:t,shortcut:r})=>{let n;const i=Qe(e,{arrow:!1,theme:"tooltip",animation:"fade",onShow(a){n??=new Ri({target:a.popper.querySelector(".tippy-content"),props:{title:t,shortcut:r}})},onHidden(){n?.$destroy(),n=void 0}});return r&&e instanceof HTMLElement&&vr.set(r,e),{destroy(){i.destroy(),r&&e instanceof HTMLElement&&vr.delete(r)}}},_t=Yr(new Map);async function mr(){const e=await navigator.keyboard.getLayoutMap(),t=Zr(_t);(e.size!==t.size||[...e.keys()].some(r=>e.get(r)!==t.get(r)))&&_t.set(e)}function Zi(){if("keyboard"in navigator){mr();const e=setInterval(mr,5e3);return()=>clearInterval(e)}else return console.warn("Keyboard API not supported"),()=>{}}function ji(e){let t;function r(a,o){return!a[1].icon&&a[1].id?.length===1?Vi:Hi}let n=r(e),i=n(e);return{c(){i.c(),t=Se()},l(a){i.l(a),t=Se()},m(a,o){i.m(a,o),Q(a,t,o)},p(a,o){n===(n=r(a))&&i?i.p(a,o):(i.d(1),i=n(a),i&&(i.c(),i.m(t.parentNode,t)))},d(a){a&&j(t),i.d(a)}}}function Ni(e){let t,r=(e[1].icon??e[1].display??e[1].id??`0x${e[1].code.toString(16)}`)+"",n,i,a,o;return{c(){t=we("kbd"),n=ze(r),this.h()},l(u){t=Oe(u,"KBD",{class:!0});var f=Ae(t);n=Ye(f,r),f.forEach(j),this.h()},h(){qe(t,"class","svelte-18hxb2i"),M(t,"icon",!!e[1].icon),M(t,"left",e[1].variant==="left"),M(t,"right",e[1].variant==="right")},m(u,f){Q(u,t,f),Xe(t,n),a||(o=kt(i=$t.call(null,t,{title:e[2]})),a=!0)},p(u,f){f&2&&r!==(r=(u[1].icon??u[1].display??u[1].id??`0x${u[1].code.toString(16)}`)+"")&&Ke(n,r),i&&Mt(i.update)&&f&4&&i.update.call(null,{title:u[2]}),f&2&&M(t,"icon",!!u[1].icon),f&2&&M(t,"left",u[1].variant==="left"),f&2&&M(t,"right",u[1].variant==="right")},d(u){u&&j(t),a=!1,o()}}}function Ii(e){let t,r,n,i,a;return{c(){t=we("span"),r=ze(e[3]),this.h()},l(o){t=Oe(o,"SPAN",{class:!0});var u=Ae(t);r=Ye(u,e[3]),u.forEach(j),this.h()},h(){qe(t,"class","dynamic svelte-18hxb2i"),M(t,"left",e[1].variant==="left"),M(t,"right",e[1].variant==="right"),M(t,"inline",e[0]==="inline-keys")},m(o,u){Q(o,t,u),Xe(t,r),i||(a=kt(n=$t.call(null,t,{title:e[4].actionSearch.LIVE_LAYOUT_INFO()})),i=!0)},p(o,u){u&8&&Ke(r,o[3]),n&&Mt(n.update)&&u&16&&n.update.call(null,{title:o[4].actionSearch.LIVE_LAYOUT_INFO()}),u&2&&M(t,"left",o[1].variant==="left"),u&2&&M(t,"right",o[1].variant==="right"),u&1&&M(t,"inline",o[0]==="inline-keys")},d(o){o&&j(t),i=!1,a()}}}function Hi(e){let t,r=(e[1].icon??e[1].display??e[1].id??`0x${e[1].code.toString(16)}`)+"",n,i,a,o;return{c(){t=we("kbd"),n=ze(r),this.h()},l(u){t=Oe(u,"KBD",{class:!0});var f=Ae(t);n=Ye(f,r),f.forEach(j),this.h()},h(){qe(t,"class","inline-kbd svelte-18hxb2i"),M(t,"left",e[1].variant==="left"),M(t,"right",e[1].variant==="right"),M(t,"icon",!!e[1].icon)},m(u,f){Q(u,t,f),Xe(t,n),a||(o=kt(i=$t.call(null,t,{title:e[2]})),a=!0)},p(u,f){f&2&&r!==(r=(u[1].icon??u[1].display??u[1].id??`0x${u[1].code.toString(16)}`)+"")&&Ke(n,r),i&&Mt(i.update)&&f&4&&i.update.call(null,{title:u[2]}),f&2&&M(t,"left",u[1].variant==="left"),f&2&&M(t,"right",u[1].variant==="right"),f&2&&M(t,"icon",!!u[1].icon)},d(u){u&&j(t),a=!1,o()}}}function Vi(e){let t,r=e[1].id+"",n;return{c(){t=we("span"),n=ze(r),this.h()},l(i){t=Oe(i,"SPAN",{class:!0});var a=Ae(t);n=Ye(a,r),a.forEach(j),this.h()},h(){qe(t,"class","svelte-18hxb2i"),M(t,"left",e[1].variant==="left"),M(t,"right",e[1].variant==="right")},m(i,a){Q(i,t,a),Xe(t,n)},p(i,a){a&2&&r!==(r=i[1].id+"")&&Ke(n,r),a&2&&M(t,"left",i[1].variant==="left"),a&2&&M(t,"right",i[1].variant==="right")},d(i){i&&j(t)}}}function Wi(e){let t;function r(a,o){if(a[3])return Ii;if(a[0]==="keys")return Ni;if(a[0]==="inline-keys")return ji}let n=r(e),i=n&&n(e);return{c(){i&&i.c(),t=Se()},l(a){i&&i.l(a),t=Se()},m(a,o){i&&i.m(a,o),Q(a,t,o)},p(a,[o]){n===(n=r(a))&&i?i.p(a,o):(i&&i.d(1),i=n&&n(a),i&&(i.c(),i.m(t.parentNode,t)))},i:dt,o:dt,d(a){a&&j(t),i&&i.d(a)}}}function $i(e,t,r){let n,i,a,o,u;Ft(e,_t,l=>r(6,o=l)),Ft(e,en,l=>r(4,u=l));let{action:f}=t,{display:p="inline-keys"}=t;return e.$$set=l=>{"action"in l&&r(5,f=l.action),"display"in l&&r(0,p=l.display)},e.$$.update=()=>{e.$$.dirty&32&&r(1,n=typeof f=="number"?xt.get(f)??{code:f}:f),e.$$.dirty&66&&r(3,i=n.keyCode&&o.get(n.keyCode)),e.$$.dirty&2&&r(2,a=`<${n.id??`0x${n.code.toString(16)}`}> `+(n.title??"")+(n.variant==="left"?" (left)":n.variant==="right"?" (right)":""))},[p,n,a,i,u,f,o]}class ea extends gr{constructor(t){super(),yr(this,t,$i,Wi,hr,{action:5,display:0})}}export{ea as A,ki as C,$t as a,Mi as b,Qi as c,Wt as d,vr as h,Gi as l,_t as o,Zi as r,Ji as s,Qe as t}; +//# sourceMappingURL=Action.tNSJ0eLt.js.map diff --git a/_app/immutable/chunks/Action.tNSJ0eLt.js.map b/_app/immutable/chunks/Action.tNSJ0eLt.js.map new file mode 100644 index 00000000..ba50f3e2 --- /dev/null +++ b/_app/immutable/chunks/Action.tNSJ0eLt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Action.tNSJ0eLt.js","sources":["../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/enums.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/math.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/within.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/createPopper.js","../../../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/popper.js","../../../../../../node_modules/.pnpm/tippy.js@6.3.7/node_modules/tippy.js/dist/tippy.esm.js","../../../../../../src/lib/undo-redo.ts","../../../../../../src/lib/components/Tooltip.svelte","../../../../../../src/lib/title.ts","../../../../../../src/lib/os-layout.ts","../../../../../../src/lib/components/Action.svelte"],"sourcesContent":["export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","/**!\n* tippy.js v6.3.7\n* (c) 2017-2021 atomiks\n* MIT License\n*/\nimport { createPopper, applyStyles } from '@popperjs/core';\n\nvar ROUND_ARROW = '';\nvar BOX_CLASS = \"tippy-box\";\nvar CONTENT_CLASS = \"tippy-content\";\nvar BACKDROP_CLASS = \"tippy-backdrop\";\nvar ARROW_CLASS = \"tippy-arrow\";\nvar SVG_ARROW_CLASS = \"tippy-svg-arrow\";\nvar TOUCH_OPTIONS = {\n passive: true,\n capture: true\n};\nvar TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {\n return document.body;\n};\n\nfunction hasOwnProperty(obj, key) {\n return {}.hasOwnProperty.call(obj, key);\n}\nfunction getValueAtIndexOrReturn(value, index, defaultValue) {\n if (Array.isArray(value)) {\n var v = value[index];\n return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;\n }\n\n return value;\n}\nfunction isType(value, type) {\n var str = {}.toString.call(value);\n return str.indexOf('[object') === 0 && str.indexOf(type + \"]\") > -1;\n}\nfunction invokeWithArgsOrReturn(value, args) {\n return typeof value === 'function' ? value.apply(void 0, args) : value;\n}\nfunction debounce(fn, ms) {\n // Avoid wrapping in `setTimeout` if ms is 0 anyway\n if (ms === 0) {\n return fn;\n }\n\n var timeout;\n return function (arg) {\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n fn(arg);\n }, ms);\n };\n}\nfunction removeProperties(obj, keys) {\n var clone = Object.assign({}, obj);\n keys.forEach(function (key) {\n delete clone[key];\n });\n return clone;\n}\nfunction splitBySpaces(value) {\n return value.split(/\\s+/).filter(Boolean);\n}\nfunction normalizeToArray(value) {\n return [].concat(value);\n}\nfunction pushIfUnique(arr, value) {\n if (arr.indexOf(value) === -1) {\n arr.push(value);\n }\n}\nfunction unique(arr) {\n return arr.filter(function (item, index) {\n return arr.indexOf(item) === index;\n });\n}\nfunction getBasePlacement(placement) {\n return placement.split('-')[0];\n}\nfunction arrayFrom(value) {\n return [].slice.call(value);\n}\nfunction removeUndefinedProps(obj) {\n return Object.keys(obj).reduce(function (acc, key) {\n if (obj[key] !== undefined) {\n acc[key] = obj[key];\n }\n\n return acc;\n }, {});\n}\n\nfunction div() {\n return document.createElement('div');\n}\nfunction isElement(value) {\n return ['Element', 'Fragment'].some(function (type) {\n return isType(value, type);\n });\n}\nfunction isNodeList(value) {\n return isType(value, 'NodeList');\n}\nfunction isMouseEvent(value) {\n return isType(value, 'MouseEvent');\n}\nfunction isReferenceElement(value) {\n return !!(value && value._tippy && value._tippy.reference === value);\n}\nfunction getArrayOfElements(value) {\n if (isElement(value)) {\n return [value];\n }\n\n if (isNodeList(value)) {\n return arrayFrom(value);\n }\n\n if (Array.isArray(value)) {\n return value;\n }\n\n return arrayFrom(document.querySelectorAll(value));\n}\nfunction setTransitionDuration(els, value) {\n els.forEach(function (el) {\n if (el) {\n el.style.transitionDuration = value + \"ms\";\n }\n });\n}\nfunction setVisibilityState(els, state) {\n els.forEach(function (el) {\n if (el) {\n el.setAttribute('data-state', state);\n }\n });\n}\nfunction getOwnerDocument(elementOrElements) {\n var _element$ownerDocumen;\n\n var _normalizeToArray = normalizeToArray(elementOrElements),\n element = _normalizeToArray[0]; // Elements created via a